Robin Dunn
f4d2cb599e
Guard against double cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@24514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-10 22:32:40 +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
69ce96e476
Updated comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-28 16:02:33 +00:00
Robin Dunn
d80b0153dd
Fix for #764099 . Instead of undoing Python's signal handlers and
...
module, just set SIG_DFL for SIGINT.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@22030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-16 23:12:02 +00:00
Robin Dunn
57ffafaae1
Use Python Longs when off_t can be 64-bit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-05-30 00:24:00 +00:00
Robin Dunn
791ed2d3d1
When the __class__ of a dead object is replaced with _wxPyDeadObject
...
the __del__ of the original class is now called first.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-30 00:55:17 +00:00
Robin Dunn
85aa152733
Restore signal handlers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@20325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-04-23 21:31:41 +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
375c124f0d
Gave up on generating a warning upon the use of the old true/false or
...
TRUE/FALSE values.
Fixed the typemap that converts strings to wxColours to also accept
unicode.
Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-19 03:45:44 +00:00
Robin Dunn
50c09563d0
Fixed problem where the wrong class name could sometimes be used for OOR
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-19 03:28:36 +00:00
Robin Dunn
ee6beb764e
Fix how the return value of OnInit is checked, also DECREF the
...
PyObjects used there.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19568 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-12 08:52:43 +00:00
Robin Dunn
d3c5a8b1aa
Do proper delete
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-28 18:33:12 +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
7cc3aa347b
A more complete fix for the wxGauge95 --> wxGauge rtti inconsistency
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-02-11 00:01:10 +00:00
Robin Dunn
170531ee4b
Work around a bug (I think) in the Python API PyUnicode_AsWideChar
...
when the length of the unicode object is zero.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-16 03:30:18 +00:00
Robin Dunn
97d2a1b925
Workaround a mismatch between the wxRTTI class name and the wxPython
...
class name. (I should check for others...)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-09 23:39:50 +00:00
Robin Dunn
b5ae0a9a3b
Fixes to allow compilation in Unicode mode on wxGTK2. Python's
...
internal Unicode representation may or may not match wchar_t.
Previously I was using the optimized APIs that assumed they were the
same, but they aren't on Linux so this checkin switches to the more
general Python APIs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18518 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 22:24:44 +00:00
Robin Dunn
cda461a616
Additional change for wxGTK2 that I forgot to check in yesterday
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18501 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-02 06:10:21 +00:00
Robin Dunn
00608d228d
Fixed a fatal bug that sometimes happens when wxPython objects are
...
destroyed while Python is cleaning itself up at exit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18468 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-30 22:21:06 +00:00
Robin Dunn
a7ddd72ef9
Unicode compliation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18315 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-18 04:15:50 +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
8f5c320767
wxSizer.Show, IsShown, etc.
...
Wrappers for and use new wxInputStream methods
Other tweaks, fixes, etc. to go along with recent CVS changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17733 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-11-05 23:03:34 +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
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
5fb99fe76f
Allow the developer to choose if SetUseBestVisual is called
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17257 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-18 20:39:08 +00:00
Robin Dunn
5c649b815c
Fix for wxPyInputStream, m_lastRead was getting incremented twice.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17222 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-17 01:44:24 +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
098be78d39
wxPython needs to deal with the new exitOnFrameDelete policy too.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-16 18:52:16 +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
46e10fde20
typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-06 01:10:38 +00:00
Robin Dunn
763d71e442
Fix the crash-on-ActiveX-callback problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-07-06 00:55:46 +00:00
Robin Dunn
4cf1a93af3
A bit of cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-06-20 23:36:58 +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
c4770edd1c
Some cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15681 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-27 17:51:22 +00:00
Robin Dunn
0b85cc38e2
various tweaks and updates
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15520 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-12 03:20:42 +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
e3dbf5934e
Don't do the wx cleanup if wxPython didn't do the initialization.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15195 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-18 05:36:21 +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
e9159fe8e8
Added wxBufferedDC, changes for wxMenu and wxMenuItem, and other
...
little fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14675 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-18 22:11:23 +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
4152e8b9fd
Moved declaratrions of wxPyInputStream and etc. into it's own header
...
file.
SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-28 16:59:20 +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
be43cc441a
A fix for Python 2.2 which can sometimes call __wxCleanup before all
...
the other wxPython objects have been deleted.
Other various things to match recent CVS changes in wx.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14163 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-12 21:28:41 +00:00
Robin Dunn
7faa9591f4
fixed compile bug for when threads are turned off
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-01 01:18:46 +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