Commit Graph

19 Commits

Author SHA1 Message Date
Robin Dunn
9497ff98b9 SIP handles raising an eception for dead objects for us. Add a __nonzero__ and some tests to go along with it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69918 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 23:34:10 +00:00
Robin Dunn
ef5d0980e2 The deprecation of SetSizeWH is already handled, no need to do it again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-12-02 01:07:06 +00:00
Robin Dunn
6c16e963f2 a little cleanup and window handle methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69668 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-11-05 04:39:32 +00:00
Robin Dunn
5ffc5d8681 Ensure that custom C++ implementations that create a new instance for the return value are marked as Factories.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69492 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-10-21 07:59:10 +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
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
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.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69187 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-25 04:06:16 +00:00
Robin Dunn
91a404fd22 FIx the %Extract used in the wxListWrapper and wxArrayWrapper templates to include the module name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69136 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-09-18 04:40:55 +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
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
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
ca6859b831 Add a tool that generates a wrapper around a wxList derived class, such as wxWindowList.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-31 18:31:29 +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
3c8221d912 More refactoring and add some more classes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@66316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-12-03 23:41:07 +00:00