Commit Graph

734 Commits

Author SHA1 Message Date
Andrea Gavana
8225935187 Phoenix: More conversions in AGW to improve compatibility. Fixed wrong Sphinx interlinks in various AGW modules. Tagged wx.lib.scrolledpanel.py and ported to Phoenix, documented and added a unittest. Small change in the Sizer ReST table.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-21 21:08:53 +00:00
Robin Dunn
388b3d86bc Add tests and support for creating custom XRC handlers and using the Python subclass factory.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73224 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:27:23 +00:00
Andrea Gavana
b4f61b591e Phoenix: fix unit test for test_uiaction.py (assertEqual needs 2 args)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73223 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:17:20 +00:00
Andrea Gavana
01483191b1 AGW in Phoenix (4): Many, many changes to almost all the AGW widgets to be able to run the AGW demos (although heavily modified). Add a unittest for LabelBook and FlatImageBook (which asserts on one test for still unknown reasons). Mention that wx.EmptyImage is now deprecated in the classic_vs_phoenix.txt file. Improved the documentation for many AGW widgets to avoid Sphinx missing links. Minor fixes to fancytext.py to allow it to run.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-19 21:06:03 +00:00
Robin Dunn
295d3f6442 * Upgrade to the newest six module (1.2.0) and call it six instead of wx2to3.
* Tweak six a little, adding its license text since we'll only be distributing the module, fix the name of the dummy moves module, and add a PY33 constant since the change in memoryview affects our code.

* Update all modules already using the old wx2to3

* Tweak lots of unit tests and other modules to work with Python 3.3 (still a few more that will need some work.)

* Try to deal with memoryview changes in Py3.3, without much luck...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-16 01:15:41 +00:00
Robin Dunn
4d5faa2868 Add _xml and _xrc modules with some unit tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73080 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:32:53 +00:00
Robin Dunn
bdc847d0f0 Fix both cases of SetStatusWidths to just use a wxArrayInt mapped type instead of a plain C array and size. Add unit tests for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73073 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-30 22:29:48 +00:00
Robin Dunn
422814f88b Add html2 (WebView) classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:23:10 +00:00
Robin Dunn
036b3db33c Add wx.GenericMessageDialog and wx.RichMessageDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-27 01:20:56 +00:00
Robin Dunn
aacc033a6d Add the rest of the dataview classes, lots of unittests and supporting helpers and MappedTypes.
Update existing dataview and variant classes and MappedTypes to add missing features and such needed for Classic compatibility and full coverage of the API.

Add some samples ported from the Classic demo so the DVC and related classes can be seen in action.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-17 22:22:20 +00:00
Robin Dunn
431b09c5a2 Add wx.glcanvas
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:39:42 +00:00
Robin Dunn
d4ce9984ff Add some Html unittests, and fix some issues discovered by the tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-01 22:51:42 +00:00
Robin Dunn
79e9959281 Add some HtmlHelp unittests, and fix some issues discovered by the tests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72856 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-01 22:51:31 +00:00
Robin Dunn
d3bc68a180 Add HtmlHelp classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72853 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-01 22:51:02 +00:00
Robin Dunn
555fcb7f22 Add unittest stubs for html modules
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72852 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-01 22:50:47 +00:00
Robin Dunn
22057708b8 Fix wxSTCNameStr, add a test for stc.pi
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:29 +00:00
Robin Dunn
4f57d144d3 Add wx.lib.busy
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72792 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:22 +00:00
Robin Dunn
06b02a6277 Add wx.stc.StyledTextCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:14 +00:00
Robin Dunn
42df9e17fa Port the add-on wx.DC.DrawXXXList methods from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-21 04:36:31 +00:00
Robin Dunn
932d7a6166 Add the raw bitmap access classes and various bits of magic.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:46:13 +00:00
Robin Dunn
7bd1c71395 Add wx.VListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:45:48 +00:00
Robin Dunn
a546e29c18 Add wx.TextEntryDialog and wx.PasswordEntryDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-16 00:45:37 +00:00
Robin Dunn
5b964d9f8b fix typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 07:04:02 +00:00
Robin Dunn
d755518068 Various test fixes for MSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:59 +00:00
Robin Dunn
73dcef083f No longer need to skip these tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72318 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:48 +00:00
Robin Dunn
a5e632d98f Make it possible to run each test suite in a new process, while still collecting and combining all the results so it looks like all tests were run in a single pass. This slows down the test run quite a bit, but protects against tests causing problems for each other (which was happening more often on OSX.) Using nosetest's multi-process feature wasn't workable in this case because new wx.App's could not be created in the child multiprocess.Process instances on Macs because of how they are forked. We need a totally new process (using the Framework Python) to make it work.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72317 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:43 +00:00
Robin Dunn
61acf2293a Fix test for OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-10 04:54:37 +00:00
Robin Dunn
7d87b52021 Fix tests for OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:41 +00:00
Robin Dunn
3c81c73b9e Adapt tests to GetHandle changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:36 +00:00
Robin Dunn
150725928a Add wxFileSystemWatcher
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-08-02 05:39:26 +00:00
Robin Dunn
824bd0f873 Allow for an item to be already selected in the tree
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-28 19:43:07 +00:00
Robin Dunn
eb0cbeeeff Ensure that items returned by GetChildren are the right type
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72151 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-20 01:47:15 +00:00
Robin Dunn
11e29f9425 Use the integer value of the enums when making the alias for the old flag names for Font, Brush, and Pen. This fixes it so that the old names can still be used without errors, even when there is overlapping flag names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-18 07:04:24 +00:00
Robin Dunn
6130163855 Add wx.Command and wx.CommandProcessor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-17 01:06:14 +00:00
Robin Dunn
0d3e370c75 Use wxListWrapperTemplate for GetMenus
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-17 01:06:06 +00:00
Robin Dunn
6cd0f1f2ee Add wx.FileHistory
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-17 01:05:55 +00:00
Andrea Gavana
f0667ab881 Phoenix-port of another part of the AGW library, including PyProgress, RulerCtrl and ShapedButton. Unittests and documentation updated to Phoenix standards. Holiday time.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72117 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-16 22:25:37 +00:00
Andrea Gavana
bb9bd6c9b8 Phoenix:
- Phoenix-port of another part of the AGW library, including `KnobCtrl`, `MultiDirDialog`, `PeakMeterCtrl`, `PyCollapsiblePane` and `PyGauge`. Unittests and documentation updated to Phoenix standards;
- Modified some methods names in the unittest for previously committed AGW widgets.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72116 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-16 21:05:36 +00:00
Andrea Gavana
6bfa39aff0 Phoenix:
- Phoenix-port of `wx.lib.buttons.py`, with unittest and documentation updated to Phoenix standards;
- Phoenix-port of part of the AGW library, including `AdvancedSplash`, `BalloonTip`, `ButtonPanel`, `CubeColourDialog`, `CustomTreeCtrl`, `FloatSpin`, `FoldPanelBar`, `FourWaySplitter`, `GenericMessageDialog`, `HyperLinkCtrl` and `HyperTreeList`. Unittests and documentation updated to Phoenix standards;
- Added the `wx2to3.py` module to `wx.lib`, to facilitate the port to Python 3 (AGW depends on it).


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-16 16:52:14 +00:00
Andrea Gavana
68f6b1cfc9 Phoenix:
- Phoenix-port of `wx.lib.colourselect.py`, with unittest and documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72109 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-15 20:36:02 +00:00
Andrea Gavana
27c5c686eb Phoenix:
- Phoenix-port of `wx.lib.imageutils.py`, with (not particularly smart) unittest and documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-15 16:35:45 +00:00
Andrea Gavana
029a845797 Phoenix:
- Phoenix-port of `wx.lib.newevent.py`, with documentation. No unittest for it as I have no idea of what test to write;
- Phoenix-port of `wx.lib.expando.py`, with unittest and documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-15 16:03:11 +00:00
Andrea Gavana
b79cacaf13 Phoenix:
- Phoenix-port of `wx.lib.colourdb.py`, with unittest and documentation.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-15 15:01:29 +00:00
Andrea Gavana
75f833dc7b Phoenix:
- Phoenix-port of `wx.lib.statbmp.py`, with unittest and documentation;
- Small modifications to `wx.lib.stattext.py` docstrings.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-15 14:29:13 +00:00
Robin Dunn
679573f18c Handle & test the Calc[Un]ScrolledPosition overloads taking a wxPoint.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-14 21:37:17 +00:00
Robin Dunn
a3f21f8f92 phoenix-port and unittest for wx.lib.stattext
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-13 03:17:49 +00:00
Robin Dunn
8a9ea4f826 Just a little cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 04:25:30 +00:00
Robin Dunn
d0d0f7b8e5 Allow spacers to be set as a wx.Size
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 04:25:25 +00:00
Robin Dunn
893f25d76c Test for missing wx.FRAME_SHAPED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 04:25:19 +00:00
Robin Dunn
2a7d52b8df Increase the delay and do a yield to help the tests exit successfully.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71994 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:32 +00:00