Robin Dunn
99c7e500b1
Fix the [G|S]etClientData methods in wx.CommandEvent
...
to be tweaked the same way they are in wx.ClientDataContainer, and add a ClientData property for each class. Update the unittests accordingly.
2017-04-24 10:19:35 -07:00
Robin Dunn
4e38994944
Update copyright in etg
2017-02-13 16:14:55 -08:00
Metallicow
ebc8d0d971
trim trailing space etg directory
2016-11-10 12:08:36 -06:00
Robin Dunn
695412a701
KeyEvent.GetUnicodeKey should return an integer, not a str/unicode object.
2015-04-15 09:53:40 -07:00
Robin Dunn
a8c5b53ed5
typos
2015-03-07 14:29:39 -08:00
Robin Dunn
4d5810d5c1
Add wxEvtHandler::TryBefore and TryAfter
2015-03-05 15:16:54 -08:00
Robin Dunn
7d377443b6
Ignore both CallAfters
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74576 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-21 16:35:55 +00:00
Robin Dunn
53d5fec413
fix assert in Bind to allow None for the handler.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-07-10 01:05:51 +00:00
Robin Dunn
8d32e67489
Interface change: long --> wxCoord in GetPosition.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:16 +00:00
Robin Dunn
35fd2e16bf
Update copyright year
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-01-21 02:13:03 +00:00
Andrea Gavana
66840744d2
Phoenix: few corrections to the overviews; Added some more contributed snippets; Fixed some more converted snippets; Added the correct interlink references in the etg files; better handling of the Doxygen stuff.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-05 20:44:52 +00:00
Andrea Gavana
6157b2bc35
Phoenix: sizers_overview.rst expanded; added a bunch of "contributed" snippets on various classes/methods; many fixes on strange doxygen layouts and XML hierarchies; fixed many cross-references between classes/methods/functions in the etg files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-12-04 20:58:27 +00:00
Robin Dunn
6b1738de26
Use the new raise syntax
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-11-09 04:40:07 +00:00
Robin Dunn
fa4a4d71fa
Undo the event_base hack from yesterday
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72826 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-30 18:24:07 +00:00
Robin Dunn
466ae77f29
Ensure we get the declarations from both event_base.h and event.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-29 22:52:32 +00:00
Robin Dunn
429507f2ad
Add a few more compatibility wrappers, and deprecate them.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72794 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-27 03:16:37 +00:00
Robin Dunn
a19d50f27e
Ignore the C++ version of CallAfter. We have our own.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-10-23 17:20:21 +00:00
Robin Dunn
9d79e123fa
Tweak the deprecation warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-11 05:02:43 +00:00
Robin Dunn
aebd862d14
Provide hints for deprecated items about what should be used instead.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-07-10 05:15:17 +00:00
Robin Dunn
5c50397ce6
Clarify the Bind docstring a little bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-06-07 04:34:24 +00:00
Robin Dunn
787cfb858e
Add and use the wxPyThreadBlocker class.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-30 03:24:34 +00:00
Robin Dunn
b41df0b779
Many, many (many!) changes needed to build and run the Phoenix extension modules with Python 3. Where possible changes were made such that the code works with both Python 2.7 and 3.2 without conditionals. In general the following types of changes were made:
...
* Changed imports to use either absolute or explicit relative imports. Implicit relative imports are no longer allowed.
* Changes to accomodate standard library classes or modues moving to other locations, or being removed entirely.
* Changes related to print becoming a function, execfile being removed, u'' no longer allowed, and other syntax related issues.
* Working around C APIs that have changed or simply vanished. (PyInt, PyString, PyBytes, etc.)
* Dealing with text file objects using strings vs binary file objects using bytes, auto-encoding, and etc.
* Replacing the use of PyCObject with PyCapsule and dealing with an apparent bug where PyCapsule objects can't be imported from submodules within a package.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@71554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-05-24 23:28:02 +00:00
Robin Dunn
5490349f39
Regardless of the command-line flag there are a few methods that should always release the GIL, those that are expected to block or to take a long time. Add the annotations now in case I ever decide to change the default again.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-03-23 03:20:08 +00:00
Robin Dunn
d5a4e871ce
Fix typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2012-02-16 01:25:27 +00:00
Robin Dunn
2cbfe087a8
* Add Scrollbar.
...
* Reorder modules a bit in _core to try to keep declarations before the place where they are used.
* Reorder classes within some etg scripts for same reason.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70214 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-31 02:37:22 +00:00
Robin Dunn
2460ebef3c
Move event related PyMethods and PyClasses out of the external code block and into extractor objects so the generators know their details.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 17:43:47 +00:00
Robin Dunn
5452fdab46
Minor tweaks and fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-19 20:58:03 +00:00
Robin Dunn
1f4d1451f2
Use a template for the C array holder class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 08:01:35 +00:00
Robin Dunn
a87c196def
Instead of passing sipIsErr into custom functions made for CppMethodDefs and etc. just check PyErr_Occurred after the function returns and then set sipIsErr there.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69400 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 04:58:46 +00:00
Robin Dunn
8124a196b0
Update to newest sip snapshot, which supports the Transfer annotation on Array annotated parameters.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-12 21:22:18 +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
40c6a0d468
* Add generation of docstrings
...
* addPyMethod can now take a deprecated=True arg
* Deprecate some python methods
* Deprecate PyEvtHandler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-17 19:46:26 +00:00
Kevin Ollivier
fdb9319c3e
Adding several new classes, some transfer annotations, and a start on a dataview model (compiles but is still a work in progress).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-16 05:15:38 +00:00
Robin Dunn
04f10c5868
Update Phoenix copyright statements to 2011
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@68978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-03 01:52:23 +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
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
9a7f1269c1
Generate CppMethods as a separate function that is called from the wrapper, instead of embedding it in the wrapper itself. This helps us be less SIP-specific and also be able to do things like 'return' the value and use 'self->' instead of having to use variable names that make less sense.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-07 02:58:21 +00:00
Robin Dunn
833fa43787
A bit of refactoring
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66286 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-28 03:43:30 +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
b3ba3f0f70
Add etg scripts for the windowid, tracker, kbdstate, mousestate and event header files.
...
Other etg weaks and cleanups as needed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66189 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-18 08:11:31 +00:00