Andrea Gavana
ca4746f13c
- Initial commit of the Python scripts to ReSTify the XML documentation.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-30 19:17:09 +00:00
Robin Dunn
289f118d09
Move more Python code to extractor objects.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-22 18:46:45 +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
9912e33123
* Add PyFunctionDef and PyClassDef extractor classes, which can be used for defining pure python functions and classes instead of just including them as blocks of text. This way the meta-data is preserved so it can be used by generators such as the sphinx generator.
...
* Implement wx.CallAfter and wx.CallLater this way for the initial test cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@70010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-15 02:36:01 +00:00
Robin Dunn
3ab334932e
renamed wx.PyAssertionError
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-03 01:00:44 +00:00
Robin Dunn
82c372cdce
Remove the old (commented out) dead object code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69919 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:35:54 +00:00
Robin Dunn
211bec4441
Some cleanup and fixes for const-ness related things
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 01:05:50 +00:00
Robin Dunn
58939ed762
Add new and improved wxInputStream and wxOutputStream support.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69808 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-24 01:40:18 +00:00
Robin Dunn
5ce7a1ffb4
Add tests for stockgdi.sip
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69725 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-10 02:44:23 +00:00
Robin Dunn
535192fda4
Reorganize _core a bit, and move the larger C++ code blocks to a .cpp file.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69724 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-10 02:43:53 +00:00
Robin Dunn
8f8c7a3d43
Add the ability to raise a wx.PyAssertionError when a wxASSERT (or other similar debug macros) fail. To do this support for the /RaisesPyException/ annotation is added, but it defaults to turned on for every function or non-ctor method.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-10 02:43:05 +00:00
Robin Dunn
e26a3ebaee
Move the Point2D_helpers code into a template function so it can be used for other types too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-26 04:48:04 +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
4f675b544c
Lots of enhancments and additions for wxGraphics classes. Added unittests too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 06:36:10 +00:00
Robin Dunn
eae4ace88a
Add a holder class for integer arrays too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-13 04:59:23 +00:00
Robin Dunn
e2f4f745f0
little tweaks and fixes for linux
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-11 00:41:10 +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
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