Robin Dunn
2034324361
Moved the hack for the Carbon header compile error to helpers.h so
...
other modules will see it if needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23855 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-23 16:28:19 +00:00
Robin Dunn
0c0042aa83
If a wxPy[Command]Event has been cloned then we need to propogate the
...
Skip value from the original back to the clone after it has been
processed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 18:28:07 +00:00
Robin Dunn
0a0a0d5cf3
Don't have a trailing semi-colons in macros for compilers that
...
complain about doubling them, ;;
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-13 01:03:32 +00:00
Robin Dunn
71df851e7f
Added wxPy versions of wxPrintPreview, wxPreviewFrame, and
...
wxPreviewControlBar so they can be derived from in Python and be able
to override the C++ virtual methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-06 21:25:16 +00:00
Robin Dunn
8e10035b0a
Instead of always logging C++ assertions, added wxPYAPP_ASSERT_LOG
...
flag to turn it on. In most cases turning it into an exception (the
default behavior) is enough.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19671 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-21 18:57:05 +00:00
Robin Dunn
83609d6f72
Fixed a interpreter lock problem in the __eq__ and __ne__ methods in wxSize and etc.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-19 22:09:59 +00:00
Robin Dunn
c74807054b
Refactored, enhanced and added capabilites for the DrawXXXList
...
functions, inspired by code from Chris Barker.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-28 00:15:29 +00:00
Robin Dunn
f2c424c93f
Added static accessors for wxPython for some of the s_mac* members of
...
wxApp on Mac. They are no-ops for the other platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-27 20:14:46 +00:00
Robin Dunn
3ce9929378
Unicode compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18316 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-18 04:23:55 +00:00
Robin Dunn
57327441a0
Renamed some helpers to avoid "GNU C++ internal naming strategy" warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-12 06:29:23 +00:00
Robin Dunn
ef84703240
Added a version save isinsnace function
...
Added wxPoint2DDouble
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18190 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-10 22:37:10 +00:00
Robin Dunn
ac153e89cc
Don't do the OnAssert overloading if not __WXDEBUG__
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-10-07 22:34:03 +00:00
Robin Dunn
65da7c0105
wxXmlSubclassFactory for wxPython
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-10-07 20:08:19 +00:00
Robin Dunn
9312e5d6db
wxASSERT and others are converted to Python Exceptions.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-10-04 00:40:31 +00:00
Robin Dunn
fd512ba286
Various wxPython updates to go along with recent changes in CVS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-05 19:39:28 +00:00
Robin Dunn
628c7f79d4
Added wxXmlResourceHandler to wxPython and enabled it's virtuals to be
...
Python Callbacks. Added a sample to the demo to show how to do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16721 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-24 02:29:34 +00:00
Robin Dunn
af83019e94
Added wxWizard and the wizard page classes, as well as a wizard sample
...
in the demo.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16575 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-17 19:08:21 +00:00
Robin Dunn
aaad759f90
Allow AddWindow and RemoveWindow to be overridden in classes derived
...
in Python
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16517 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-14 23:26:42 +00:00
Robin Dunn
249a57f443
Made the wxInputStream typemap useable outside the core wxc module
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-20 00:10:46 +00:00
Robin Dunn
bc5f2236eb
Changes needed to allow compilation with SunCC.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-20 21:39:33 +00:00
Robin Dunn
a66212dcdf
Fixed a bunch of embarassing reference leaks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-15 05:51:11 +00:00
Robin Dunn
b0e5c03934
Added wxPyWindow and wxPyControl which are just like their wx
...
counterparts except they allow some of the more common C++ virtual
methods to be overridden in Python derived classes.
Changed wxGenButton to derive from wxPyControl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-06 17:37:38 +00:00
Robin Dunn
a24268437f
Fixed the bugs preventing wxPython from being embedded in a wxWindows
...
app, and added a sample showing how to do it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-02 04:45:47 +00:00
Robin Dunn
4acff284f9
A little black magic... When the C++ object (for a window or
...
whatever) is deleted there is no way to force the Python shadow object
to also be destroyed and clean up all references to it. This leads to
crashes if the shadow object tries to call a method with the old C++
pointer... The black magic I've done is to replace the __class__ in the
Python instanc object with a class that raises an exception whenever a
method call is attempted.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-09 22:01:45 +00:00
Robin Dunn
db0ff83efb
Updates to match recent CVS changes.
...
Plugged some resource count leaks.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15042 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-08 20:56:34 +00:00
Robin Dunn
137b5242b1
More unicode related cleanup and fixes for wxPython
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14700 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-21 05:50:09 +00:00
Robin Dunn
cac344f664
Fixed a typo in one of the virtual callback macros.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-18 18:30:09 +00:00
Robin Dunn
a541c32586
Core wxPython (non-contrib) now fully works with Unicode!
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-13 22:30:20 +00:00
Robin Dunn
c8bc7bb84d
Applied and merged patch 486364, which enables wxPython to be built in
...
unicode mode. There are a number of things still missing in it and
not everything is converted correctly... But it now builds and
functions properly again in non-unicode mode so this is a good time to
check in everything. The previous version of all of wxPython sources
is tagged wxPy_B4_UNICODE.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-10 00:29:04 +00:00
Robin Dunn
cbf60e091e
Moved declaratrions of wxPyInputStream and etc. into it's own header
...
file.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-28 15:53:14 +00:00
Robin Dunn
f74ff5efa5
Finished wrapping and providing typemaps for wxInputStream and also
...
added the stream ctor and other methods for wxImage so images can now
be loaded from any Python "file-like" object.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-23 19:50:01 +00:00
Robin Dunn
293a0a8677
Fixed a typemap.
...
Added a Python list --> wxArrayInt typemap and wxArrayInt --> Python
list helper.
Added wxMultiChoiceDialog.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13736 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-21 21:33:07 +00:00
Robin Dunn
4268f79856
Changed (again) how the Python global interpreter lock is handled as
...
well as the Python thread state. This time it works on SMP machines
without barfing and is also still compatible with Python debuggers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-19 21:25:11 +00:00
Robin Dunn
7b7ac0ab51
Added wxChildFocusEvent
...
Updated wxHtmlWindow
Added wxEditableListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12739 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-28 09:47:53 +00:00
Robin Dunn
2f4e928794
Changes needed to solve wxPython's OOR problem for the wxOGL shapes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12717 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-27 02:56:59 +00:00
Robin Dunn
07b2e1cd38
Replaced CopyObject with Clone for wxPython-specific event classes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 06:04:42 +00:00
Robin Dunn
36fd8ec3c9
Fixed some warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12499 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 01:55:55 +00:00
Robin Dunn
b37c7e1dcd
Added typemap for wxArrayString
...
Added wxMimeTypesManager and wxFileType
Other updates...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12206 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-30 06:43:54 +00:00
Robin Dunn
9d37f96428
Added some optimization methods to wxPython's wxDC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-16 19:06:09 +00:00
Robin Dunn
0122b7e3fc
Second phase of OOR completed. (Original python object return for
...
wxEvtHandler and derived classes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-12 23:26:38 +00:00
Robin Dunn
900d98862d
Refactored Python shadows to use wxControlWithItems where appropriate.
...
Implememted SetClientData for wxControlWithItems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11798 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-03 03:32:37 +00:00
Robin Dunn
059a841c96
Significantly changed how the Python interpreter lock and thread state
...
are managed, which should fix the problem of running on a
multi-processor machine.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-17 21:47:20 +00:00
Robin Dunn
19a97bd6f9
Significantly changed how the Python interpreter lock and thread state
...
are managed, which should fix the problem of running on a
multi-processor machine.
Some fixes for some of the contributed library modules.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-16 01:51:13 +00:00
Robin Dunn
00b6c4e33b
Added a new sample app that is a style editor for wxSTC.
...
Some other tweaks and fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-28 19:21:45 +00:00
Robin Dunn
c7e7022c2c
Deprecated PyShell and PyShellWindow, added a snapshot of PyCrust.
...
Added the new virtual list capabilities to wxListCtrl.
Other odds and ends.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-08-14 19:19:48 +00:00
Robin Dunn
9416aa89ca
Implemented the first phase of OOR (Original Object Return). See the
...
text in the demo for more details of what this means, but in a
nutshell methods such as wxWindow.GetParent or FindWindowById will now
return a shadow object of the proper type if it can. By "proper type"
I mean that if the wxWindow pointer returned from FindWindowById
really points to a wxButton then the Python object constructed will be
of a wxButtonPtr class instead of wxWindowPtr as before. This should
reduce or eliminiate the need for wxPyTypeCast. (Woo Hoo!) The
objects returned are still not the original Python object, but that is
the next step. (Although it will probably only work on Python 2.1 and
beyond because it will use weak references.)
A few other minor tweaks and fixes and additions for things found
while doing the OOR stuff.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10197 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-17 22:47:09 +00:00
Robin Dunn
e0672e2fc3
Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
...
it gobs faster in certain situations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-02 07:07:22 +00:00
Robin Dunn
f2e1c18a79
fixed bug in IMP_PYCALLBACK__BOOL2DBL2INT, for #223404 in the tracker
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-26 22:38:29 +00:00
Robin Dunn
b68dc582b8
More cleanup. Removed all wxPyDefaultXXX since they aren't needed any
...
more. Regenerated wxGTK code from this morning's changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-22 06:51:21 +00:00
Robin Dunn
bdb9373a32
Some cleanup and a fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-22 00:47:36 +00:00