Robin Dunn
7e2835ea61
Add other classes from cmndata.h, add some extra methods and such we had in Classic, add unit tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:33:22 +00:00
Robin Dunn
44bb0d6eaf
Test wx.NullBrush and __nonzero__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69263 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:34:39 +00:00
Robin Dunn
d2d1bcd923
Add some Python methods and properties that CheckListBox had in Classic, and some unittests for them too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69262 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:32:52 +00:00
Robin Dunn
1427dd6591
filename change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69261 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:22:08 +00:00
Robin Dunn
8aab0cabf0
* Turn off the virtual flag for the wxObject dtor. This makes it possible for simpler wrappers without a new derived class to be generated for any class that derives from wxObject and doesn't have any virtuals of its own, and also makes it so .addCppCtor will work for those classes.
...
* Switch to .addCppCtor for wx.Font
* Add code to enable wx.AcceleratorTable to be constructed from a list of 3 integer tuples (or wx.AcceleratorEntry instances) like can be done in Classic.
* Add unittests for wx.AcceleratorTable and wx.AcceleratorEntry
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69259 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:45:57 +00:00
Robin Dunn
cf69d53aa5
wxGCDC takes ownership of the graphics context. Also tell it to hold a reference to the DCs.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:40:07 +00:00
Robin Dunn
6e5dd68234
* add a yield function that makes its own eventloop since the unittests are run before MainLoop and wx.Yield is almost a no-op then.
...
* Use the new yield
* Add some new tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:24:17 +00:00
Robin Dunn
5de01f8ab6
Add wx.Timer and wx.CallLater
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:21:11 +00:00
Robin Dunn
eaa022b520
more new test modules
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69159 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 05:45:41 +00:00
Robin Dunn
26417adce8
updated and new unittests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69157 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 04:43:51 +00:00
Robin Dunn
317f312acc
Lotsa new unittests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69143 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:59:15 +00:00
Robin Dunn
58c1a51b09
* Switch type default to wxBITMAP_TYPE_ANY
...
* Add __nonzero__
* Add GetHandle and SetHandle for MSW since Classic has them
* Add a deprecated CursorFromImage
* Add some unittests.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:56:29 +00:00
Robin Dunn
462c8b7932
* Flesh out wxConfig some more.
...
* Add ReadFloat, ReadBool, set ownership transfers for Set, etc.
* Add unittests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69133 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 21:50:21 +00:00
Robin Dunn
ce158b85e3
wxMSW requires mask bitmaps to have 1-bit depth
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 19:48:15 +00:00
Robin Dunn
dad6865951
import and use unittest
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 19:47:15 +00:00
Robin Dunn
a548f7224d
unittest updates and new test modules
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-15 16:16:21 +00:00
Kevin Ollivier
60d9ea15f6
More updates for Phoenix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-09 15:46:56 +00:00
Robin Dunn
849e0427fc
* Switch to Py2.7 for the default Python to build with.
...
* Print wx.version() from the tests to help ensure we're using the version of wxPython we thing we are.
* Set the sub-release number to a larger value to help keep it separate from classic wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69014 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-06 16:28:59 +00:00
Robin Dunn
5e89a9606d
Change the package name from wxPhoenix to wx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 02:39:18 +00:00
Robin Dunn
4219e02440
* move wxPen to etg/pen.py
...
* move wxBrush to etg/brush.py
* move wxBookCtrlBase and wxBookCtrlEvent to etg/bookctrl.py
* move wxBitmapButton to etg/bmpbuttn.py
* move wxArrayString MappedType and add wxArrayInt plus some unittests
* add checking for default values for pos and size parameters in fixWindowClass
* set out parameter flags for wxImageHistogram.FindFirstUnusedColour
* Restore layout constraints classes and related methods
* Create a MappedType for wxClientData
* update used of wxClientData in wx.CommandEvent
* Move wxControlWithItems, wxItemContainer and wxControlWithItems to etg/ctrlsub.py
* enable some Append, Insert and Set overloads in wxControlWithItems
* addGetterSetterProps: don't make setter-only properties
* addGetterSetterProps: ensure that the getter can be called with zero args
* addGetterSetterProps: ensure that the setter can be called with just 1 arg
* restore version checking code
* moved DC classes to other etg files to match interface file names.
* allow both overloads for wx.DC.GetTextExtent and GetMultiLineTextExtent by renaming 1
* add wx.DC.GetPartialTextExtents
* and some other stuff
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:42:42 +00:00
Kevin Ollivier
49fda7ada4
Add automatic class property generation, add support for defines, remove layout constraints from the build as they appear not to be generated with the docs for me, and add wrappers for a bunch of classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-30 15:39:33 +00:00
Robin Dunn
911d90273c
Lots of little changes made to Phoenix code over the past few months, plus some tweaks to get it running with the current wx.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68905 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-08-25 23:45:50 +00:00
Robin Dunn
b47abd88ff
SIP now does the RightThing with __[sg]etattr__ methods, so use them to provide a simpler implementation for wx.PyEvent and wx.PyCommandEvent. Put any attributes set from Python into a separate dictionary object, and copy that dictionary in Clone().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-29 02:09:50 +00:00
Robin Dunn
68542755de
Uncommented CallAfter() and test it
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 18:58:39 +00:00
Robin Dunn
8fffd8c53e
Add wxProcess, utils.h and the wx.Py events.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 18:53:41 +00:00
Robin Dunn
212f1ff9f0
Gobs and gobs of changes, and tons of progress made. Can now create a wx.App, show a wx.Frame, run the MainLoop, bind event handlers and dispatch the events to the handler! YeeHa!
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-17 08:08:24 +00:00
Robin Dunn
a938e6a76f
Move runtests.py to unittests folder
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-04 00:28:47 +00:00
Robin Dunn
a16f7ef06b
Rename wx.Platform* to wx.Port*. Renable wx.PySimpleApp with a deprecation wrapper.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-04 00:28:19 +00:00
Robin Dunn
96717983ad
A boatload of changes and additions, all my Phoenix work for the past few days. Lots of lower level classes are wrapped, wxApp is working up through OnInit, plus there's a good start on some unit tests.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66272 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-27 08:53:17 +00:00
Robin Dunn
f765afe0c3
Deal with the pure-virtual nature of wxEvent::Clone, SIP needs to see that it i implemented in derved classes. Add some unittests for the event classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-19 08:03:01 +00:00
Robin Dunn
b77539c5db
new unit tests
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-18 08:17:40 +00:00
Robin Dunn
b9e74764ec
More properties, magic methods and unit tests for gdicmn
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-14 07:57:09 +00:00
Robin Dunn
24c86126d9
Add magic methods to wx.Size and add unit tests for wx.Size. Also a bit of related refactoring and cleanup.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66147 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-14 01:29:52 +00:00
Robin Dunn
36e09a96ad
Unit tests for wx.Point
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-13 08:15:40 +00:00