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
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
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
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
Kevin Ollivier
747eb463b6
Switch to using a typemap for wxVariant, and add impls for wxString, long, int and bool.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 17:30:23 +00:00
Robin Dunn
4aa419bf61
Add DllMain to save the DLL hInstance as the wx hInstance (so it knows where to look for the resource data)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 04:38:11 +00:00
Robin Dunn
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.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-20 04:33:19 +00:00
Kevin Ollivier
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.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69146 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 16:37:38 +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
d949d1dad1
* Update version number
...
* Since they are almost always needed for window classes, move the calls to
removeVirtuals and addWindowVirtuals into the fixWindowClass and
fixTopLevelWindowClass functions.
* Add wxWithImages to the interface headers and create wrappers for it and use
it as a base of wxBoockCtrlBase.
* Add a new wx.deprecated() function that can handle properties and classes in
addition to callables. It issues a custom warning, wxPyDeprecationWarning
since the stock DeprecationWarning is filtered out by default in Python 2.7.
* Deprecate PyWindow and similar aliases
* Deprecate wx.Window.SetDimensions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-11 00:33:10 +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
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
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
6733e06ff2
We can now use PyObject* instead of SIP_PYOBJECT
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66509 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-31 19:26:22 +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
80898eba5b
a bit of cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66488 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-29 02:06:02 +00:00
Robin Dunn
39b5167c96
fix a comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 20:36:49 +00:00
Robin Dunn
56b229d99e
cleanups and tweaks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 18:59:06 +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
0dbb56bbb5
Verify parameter types passed to Bind()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-27 18:56:41 +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
fcf745d0ca
A bit of code reoganization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-07 03:17:10 +00:00
Robin Dunn
85b85500b9
no longer need these files.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-07 02:38:22 +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
548d52253c
minor fix in the file header
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-18 08:19:45 +00:00
Robin Dunn
bbbdae3651
Add implemenation for the wxString MappedType
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-18 08:11:59 +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
Robin Dunn
7ddbef68b5
Add ability to generate code into a .py file which does the import of the extension module. This will be used to add Python code to a module so we dont' have to do everything in C++.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-12 22:19:32 +00:00
Robin Dunn
2c4ebc512e
Add file headers to the rest of the source files, don't bother with cvs keywords, fix some typos, etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-11 00:54:15 +00:00
Robin Dunn
ab37739a9b
initial commit of experimental Phoenix code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66111 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-11 00:08:20 +00:00