Commit Graph

199 Commits

Author SHA1 Message Date
Robin Dunn
25c3e80700 new unittests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69341 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:47:33 +00:00
Robin Dunn
e868502a7b typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:47:19 +00:00
Robin Dunn
ef18cfac2f Use wxStringArrayHolder to hold a copy of the array of filenames and pass that to wxDropFilesEvent. The holder will delete the array later after the event object is deleted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69339 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:46:34 +00:00
Robin Dunn
bfc4d668a8 Add wx2PyString and wxStringArrayHolder
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:45:26 +00:00
Robin Dunn
2e49e0dd81 Use wx2PyString
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69337 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:44:34 +00:00
Robin Dunn
8e2363a505 tweak the output of the docstrings a little, and also save a copy of it in case it is needed later
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69336 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:43:29 +00:00
Robin Dunn
11a1fa830e Other unittests use an event loop, so no need to have dedicated tests for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69335 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:42:03 +00:00
Robin Dunn
6e1e506fd1 Clean up some commented out code.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69334 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:36:05 +00:00
Robin Dunn
bdcf743e89 Some fixes for Array WrapperTemplate and ListWraperTemplate dealign with raising IndexError and using references instead of values in some places
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69333 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:31:03 +00:00
Robin Dunn
dd566ba703 Tweak GetFilenames and GetPaths
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:28:22 +00:00
Robin Dunn
425b7202fd Add __nonzero and wxArrayVideoModes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:27:39 +00:00
Robin Dunn
0c3a1fa2a2 We can add GetModes now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:27:14 +00:00
Robin Dunn
d22711a458 Add conext manager methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:26:48 +00:00
Robin Dunn
8c0b88b036 Give wx.Font a __nonzero__(), add wx.NativeFontInfo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69328 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-09 07:26:24 +00:00
Robin Dunn
a4847191f8 Put the postscript DC into wx.PRINT_MODE_FILE mode to avoid asserts
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 21:40:52 +00:00
Robin Dunn
019fd15013 Fix some typos
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69311 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 21:39:16 +00:00
Robin Dunn
ccce9f71f0 Also copy .pdb files for debug builds
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69310 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 21:38:44 +00:00
Robin Dunn
6de264a783 More TODOs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:13:27 +00:00
Robin Dunn
8171e9d81a Add and update DC unittests
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:12:54 +00:00
Robin Dunn
510e4f610d * Add wxDCClipper, wxDCBrushChanger, wxDCPenChanger, wxDCTextColourChanger and wxDCFontChanger
* Set output param annotations for lots of methods
* Add lots of other additions and customisations from Classic's wx.DC

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:11:22 +00:00
Robin Dunn
8feaa2414c Instead of renaming the SetRect and SetClientRect methods, just add some python wrappers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 08:01:51 +00:00
Robin Dunn
81dba44dc2 reenable dcps
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 07:58:47 +00:00
Robin Dunn
5bf38a1a26 Add aliases for the old font, pen, brush, etc. flags.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69302 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 07:57:20 +00:00
Robin Dunn
60be5b7dfc Make it possible for parameters to be ignored. It works in regular wrappers for args on the end of the list that have default values, and also for things like functions that have their C++ code replaced with .setCppCode
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-04 07:54:49 +00:00
Robin Dunn
5204b0f739 Switch to using wtc.WidgetTestCase so there is a wx.App while this test is run
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:37:33 +00:00
Robin Dunn
cf26ac6027 Copy some C macros from Classic
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:36:43 +00:00
Robin Dunn
1af73c5598 Document why some things are being ignored
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69277 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:35:50 +00:00
Robin Dunn
f59dec27fb moved a typedef
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69276 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:33:52 +00:00
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
0c5495a47d Add a deprecated NamedColour, fix a typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:30:51 +00:00
Robin Dunn
2e26f3809c typo
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-02 05:28:38 +00:00
Robin Dunn
774b43a55f only abstract classes here, don't complain about lack of unittest
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:39:24 +00:00
Robin Dunn
d008e7552d AppTraits can provide GetStandardPaths now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69264 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:38:03 +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
8f9862b23e Add the ability to create class properties from Python methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69260 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 07:20:19 +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
812c5b706d Undo last commit for etg/accel.py, it was supposed to be part of a different changeset
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:36:25 +00:00
Robin Dunn
59865b374a dataobject --> dataobj
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:33:39 +00:00
Robin Dunn
811f1aaeb8 dataobject --> dataobj
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69255 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-01 00:33:19 +00:00
Robin Dunn
94550bc1e3 typos, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-29 21:02:52 +00:00
Robin Dunn
e02534acf2 Add some text about the idea for versioning the back-end tools
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-29 20:57:56 +00:00
Robin Dunn
8f21965c05 Just cleanup a little excess whitespace
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69235 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-29 20:56:53 +00:00
Robin Dunn
9dbcd04fa7 Use %DefaultDocstringFormat and write the %Docstrings indented inside the classes as expected to make the generated .sip files easier for mere humans to read and understand.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69234 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-29 20:55:57 +00:00
Robin Dunn
820a61dc4c siplib updates from the sip-4.12.5-snapshot-de6a700f5faa development snapshot
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69233 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-29 20:53:43 +00:00
Kevin Ollivier
2b2e7e0f16 Attempt to fix buildbot build by creating the wx directory if it doesn't exist.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69211 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-28 17:26:48 +00:00
Kevin Ollivier
c6dc28a253 Update the TODO file to reference the fact that we now have a buildbot, and also see if this commit will trigger a build. :)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69210 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-28 16:14:13 +00:00
Kevin Ollivier
aaca0c1ffe More work on wxDVC support, including DataViewItem support and GetValue override work, along with a few misc. things, and add a script in etgtools to create new etg files given command line params.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 06:09:42 +00:00