Commit Graph

  • 8171e9d81a Add and update DC unittests Robin Dunn 2011-10-04 08:12:54 +00:00
  • 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 Robin Dunn 2011-10-04 08:11:22 +00:00
  • 8feaa2414c Instead of renaming the SetRect and SetClientRect methods, just add some python wrappers. Robin Dunn 2011-10-04 08:01:51 +00:00
  • 81dba44dc2 reenable dcps Robin Dunn 2011-10-04 07:58:47 +00:00
  • 5bf38a1a26 Add aliases for the old font, pen, brush, etc. flags. Robin Dunn 2011-10-04 07:57:20 +00:00
  • 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 Robin Dunn 2011-10-04 07:54:49 +00:00
  • 5204b0f739 Switch to using wtc.WidgetTestCase so there is a wx.App while this test is run Robin Dunn 2011-10-02 05:37:33 +00:00
  • cf26ac6027 Copy some C macros from Classic Robin Dunn 2011-10-02 05:36:43 +00:00
  • 1af73c5598 Document why some things are being ignored Robin Dunn 2011-10-02 05:35:50 +00:00
  • f59dec27fb moved a typedef Robin Dunn 2011-10-02 05:33:52 +00:00
  • 7e2835ea61 Add other classes from cmndata.h, add some extra methods and such we had in Classic, add unit tests Robin Dunn 2011-10-02 05:33:22 +00:00
  • 0c5495a47d Add a deprecated NamedColour, fix a typo Robin Dunn 2011-10-02 05:30:51 +00:00
  • 2e26f3809c typo Robin Dunn 2011-10-02 05:28:38 +00:00
  • 774b43a55f only abstract classes here, don't complain about lack of unittest Robin Dunn 2011-10-01 07:39:24 +00:00
  • d008e7552d AppTraits can provide GetStandardPaths now. Robin Dunn 2011-10-01 07:38:03 +00:00
  • 44bb0d6eaf Test wx.NullBrush and __nonzero__ Robin Dunn 2011-10-01 07:34:39 +00:00
  • d2d1bcd923 Add some Python methods and properties that CheckListBox had in Classic, and some unittests for them too. Robin Dunn 2011-10-01 07:32:52 +00:00
  • 1427dd6591 filename change Robin Dunn 2011-10-01 07:22:08 +00:00
  • 8f9862b23e Add the ability to create class properties from Python methods Robin Dunn 2011-10-01 07:20:19 +00:00
  • 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 Robin Dunn 2011-10-01 00:45:57 +00:00
  • cf69d53aa5 wxGCDC takes ownership of the graphics context. Also tell it to hold a reference to the DCs. Robin Dunn 2011-10-01 00:40:07 +00:00
  • 812c5b706d Undo last commit for etg/accel.py, it was supposed to be part of a different changeset Robin Dunn 2011-10-01 00:36:25 +00:00
  • 59865b374a dataobject --> dataobj Robin Dunn 2011-10-01 00:33:39 +00:00
  • 811f1aaeb8 dataobject --> dataobj Robin Dunn 2011-10-01 00:33:19 +00:00
  • 94550bc1e3 typos, etc. Robin Dunn 2011-09-29 21:02:52 +00:00
  • e02534acf2 Add some text about the idea for versioning the back-end tools Robin Dunn 2011-09-29 20:57:56 +00:00
  • 8f21965c05 Just cleanup a little excess whitespace Robin Dunn 2011-09-29 20:56:53 +00:00
  • 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. Robin Dunn 2011-09-29 20:55:57 +00:00
  • 820a61dc4c siplib updates from the sip-4.12.5-snapshot-de6a700f5faa development snapshot Robin Dunn 2011-09-29 20:53:43 +00:00
  • 2b2e7e0f16 Attempt to fix buildbot build by creating the wx directory if it doesn't exist. Kevin Ollivier 2011-09-28 17:26:48 +00:00
  • 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. :) Kevin Ollivier 2011-09-28 16:14:13 +00:00
  • 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. Kevin Ollivier 2011-09-25 06:09:42 +00:00
  • bca8d2f784 A little cleanup and tweaking Robin Dunn 2011-09-25 04:24:41 +00:00
  • 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 Robin Dunn 2011-09-25 04:24:17 +00:00
  • 5de01f8ab6 Add wx.Timer and wx.CallLater Robin Dunn 2011-09-25 04:21:11 +00:00
  • 6fe99f038a * Some of the Create methods in wx.AppTraits can be unignored now. * Add a Traits property to wx.App Robin Dunn 2011-09-25 04:12:06 +00:00
  • 989e32949a Add wxEventLoopActivator Robin Dunn 2011-09-25 04:10:51 +00:00
  • 6467ff5c06 Add wxWindowModalDialogEvent Robin Dunn 2011-09-25 04:10:34 +00:00
  • 2348f50748 Add the 'const's to to overridden methods in wxConfig so sip stays happy Robin Dunn 2011-09-25 04:10:09 +00:00
  • 45990bae2f For .setCppCode fixes Robin Dunn 2011-09-25 04:09:16 +00:00
  • e44dd28fd4 * Replacing method code with .setCppCode is now not SIP-specific. The generated code creates a new function to place the code in, like CppMethodDef does, so the given code can use 'self' and return values instead of using special SIP variables. * added setCppCode_sip for when SIP-specific stuff is needed. * Adding the 'const' on to const methods had somehow been forgotten, fix that. Robin Dunn 2011-09-25 04:06:16 +00:00
  • 747eb463b6 Switch to using a typemap for wxVariant, and add impls for wxString, long, int and bool. Kevin Ollivier 2011-09-20 17:30:23 +00:00
  • 20324e7a69 reword it a bit Robin Dunn 2011-09-20 16:20:36 +00:00
  • 933c11bd43 Start the Phoenix migration guide. Robin Dunn 2011-09-20 05:46:11 +00:00
  • eaa022b520 more new test modules Robin Dunn 2011-09-20 05:45:41 +00:00
  • 78e1d5ebf6 Add notes about setting up automated builds Robin Dunn 2011-09-20 04:44:29 +00:00
  • 26417adce8 updated and new unittests Robin Dunn 2011-09-20 04:43:51 +00:00
  • 2bf117be7f dont complain about the lack of a unit test for this one Robin Dunn 2011-09-20 04:40:53 +00:00
  • 4419d27231 auto-create properties, and experimenting with keepReference on the dc parameters... Robin Dunn 2011-09-20 04:40:25 +00:00
  • 792dc037c2 Add back the "BLACK" parameter defaults Robin Dunn 2011-09-20 04:39:11 +00:00
  • 4aa419bf61 Add DllMain to save the DLL hInstance as the wx hInstance (so it knows where to look for the resource data) Robin Dunn 2011-09-20 04:38:11 +00:00
  • d7be131b94 make running the tests verbosly optional Robin Dunn 2011-09-20 04:36:57 +00:00
  • 3ebcacecb4 sort the list of C++ files Robin Dunn 2011-09-20 04:33:51 +00:00
  • 70467f7621 Add wxStockGDI, use it to delay the initialization of the global stock GDI objects (wx.BLUE_BRUSH, wx.RED, wx.BLACK_PEN, etc.) until the wx.App object is created. Robin Dunn 2011-09-20 04:33:19 +00:00
  • 1aa87b9104 Another batch of new classes. With this, aside from wxRadioBox since it still has the ambiguous base issue for GetDefaultBorder, all the wxPython Classic unittest suite runs, and impressively, pretty much just reports missing methods (maybe undoc'ed or Classic-only ones) and a couple missing bits like PyAssertionError. Kevin Ollivier 2011-09-18 16:37:38 +00:00
  • 0e2a0393b8 More details for the "For all new etg files" section of the document. Robin Dunn 2011-09-18 05:31:10 +00:00
  • 881cdb6dcc Updated TODOs Robin Dunn 2011-09-18 05:17:05 +00:00
  • 317f312acc Lotsa new unittests Robin Dunn 2011-09-18 04:59:15 +00:00
  • 447048aca9 Ignore the wxIMAGE_OPTION_* defines since they are all strings. Add assignments to a block of pycode instead. Robin Dunn 2011-09-18 04:58:42 +00:00
  • df0d33587f No unittests needed for this module since the classes are all abstract. Robin Dunn 2011-09-18 04:57:14 +00:00
  • 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. Robin Dunn 2011-09-18 04:56:29 +00:00
  • 25a28bf6cc * Enable the use of the KeepReference annotation * Use keepReference=True for the dc and buffer args in the buffered DCs to ensure that the target DC and the buffer are not GC's before the buffered DC is. * Change #defines to output a "const int NAME" instead of an enum. It looks lots better, and is closer to the truth. Robin Dunn 2011-09-18 04:52:28 +00:00
  • d1f07ae0a7 Move wxFontMetrics from font.py to dc.py since that is the interface file it is located in. Robin Dunn 2011-09-18 04:48:46 +00:00
  • 4a563ed809 Move wxFontMetrics from font.py to dc.py since that is the interface file it is located in. Robin Dunn 2011-09-18 04:42:10 +00:00
  • 91a404fd22 FIx the %Extract used in the wxListWrapper and wxArrayWrapper templates to include the module name Robin Dunn 2011-09-18 04:40:55 +00:00
  • 462c8b7932 * Flesh out wxConfig some more. * Add ReadFloat, ReadBool, set ownership transfers for Set, etc. * Add unittests Robin Dunn 2011-09-17 21:50:21 +00:00
  • 93affb710a remove debug print Robin Dunn 2011-09-17 21:41:11 +00:00
  • 6567232ed6 move checklistbox to checklst Robin Dunn 2011-09-17 20:03:37 +00:00
  • 75b3dafeb8 Clarify a comment Robin Dunn 2011-09-17 19:49:33 +00:00
  • ce158b85e3 wxMSW requires mask bitmaps to have 1-bit depth Robin Dunn 2011-09-17 19:48:15 +00:00
  • dad6865951 import and use unittest Robin Dunn 2011-09-17 19:47:15 +00:00
  • 716a5773c3 A little cleanup Robin Dunn 2011-09-17 19:46:53 +00:00
  • 40c6a0d468 * Add generation of docstrings * addPyMethod can now take a deprecated=True arg * Deprecate some python methods * Deprecate PyEvtHandler Robin Dunn 2011-09-17 19:46:26 +00:00
  • 70fd236b7b Give a little more details in the comment about wxConfig Robin Dunn 2011-09-17 19:29:43 +00:00
  • b3e9e08922 Let the backend know that the "unsigned char" parameters should be treated as integers, not strings. Also set the out flag for output parameters. Still lots more to do here. Robin Dunn 2011-09-17 19:22:39 +00:00
  • 5568e40385 Windows build fixes Robin Dunn 2011-09-17 19:19:15 +00:00
  • 10f0a0f57c Pretend that there is a real wxConfig class. It will end up using the wxConfig #defined in the C++ code, and will actually be whatever is the default config class for the platform. Robin Dunn 2011-09-17 19:15:36 +00:00
  • 599a5bfcc1 fix file header text Robin Dunn 2011-09-17 19:09:42 +00:00
  • 4e07201394 Move dataformat to dataobj Robin Dunn 2011-09-17 19:06:27 +00:00
  • 6b9f5b8d91 We want the name of the parent module, not the name of the module itself, for the pycode annotations. Kevin Ollivier 2011-09-17 04:47:33 +00:00
  • f327ab13e4 Commit another missing file... Kevin Ollivier 2011-09-16 21:17:38 +00:00
  • ad305b513b Add missing filedlg.py. Kevin Ollivier 2011-09-16 20:49:42 +00:00
  • fdb9319c3e Adding several new classes, some transfer annotations, and a start on a dataview model (compiles but is still a work in progress). Kevin Ollivier 2011-09-16 05:15:38 +00:00
  • a548f7224d unittest updates and new test modules Robin Dunn 2011-09-15 16:16:21 +00:00
  • 7d7b8b77b8 Add __nonzero__ and MacSetTheme Robin Dunn 2011-09-15 16:15:35 +00:00
  • bff3c4df0f * Transfer ownership for SetMask * Add __nonzero__ and SetMaskColour Robin Dunn 2011-09-15 16:15:07 +00:00
  • 526f484f79 Add a TODO Robin Dunn 2011-09-15 16:13:44 +00:00
  • 1a3be187ea * Suppress the unittest warning Robin Dunn 2011-09-15 16:13:19 +00:00
  • cdc4fa7a6e * Don't generate the property if the getter is static * Give a WARNING if there is no unittest file for the etg file. This can be suppressed for the modules that really do not need one. Robin Dunn 2011-09-15 16:12:40 +00:00
  • e54ba50b49 Various fixes for the build on Windows Robin Dunn 2011-09-14 06:50:09 +00:00
  • 3b087917bf It's done, remove the "TODO" Robin Dunn 2011-09-13 05:56:10 +00:00
  • 2d4e4b7ca2 Since we're running the etg scripts and sip from build.py then we don't need the distutils hacks needed to run them from setup.py. Deactivate the and just use normal distutils stuff on the generated C++ files. Robin Dunn 2011-09-13 05:47:13 +00:00
  • 4ecd33b8ce typos Robin Dunn 2011-09-11 01:02:35 +00:00
  • 4f7cd6268a Another TODO Robin Dunn 2011-09-11 00:50:57 +00:00
  • 5e5c464c91 Remove some done TODOs, add another. Robin Dunn 2011-09-11 00:44:36 +00:00
  • d949d1dad1 * Update version number Robin Dunn 2011-09-11 00:33:10 +00:00
  • 60d9ea15f6 More updates for Phoenix. Kevin Ollivier 2011-09-09 15:46:56 +00:00
  • 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. Robin Dunn 2011-09-06 16:28:59 +00:00
  • 5e89a9606d Change the package name from wxPhoenix to wx Robin Dunn 2011-09-03 02:39:18 +00:00
  • 04f10c5868 Update Phoenix copyright statements to 2011 Robin Dunn 2011-09-03 01:52:23 +00:00