Robin Dunn
450c7f34c0
more dbg flags (but it's still comment out by defult)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-03 21:17:06 +00:00
Robin Dunn
6d450e1a20
Since the wxPyMake_wxObject typemap is also used for constructors we
...
need to allow it to use the $owner value to specify if the thisown
attribute shoudl be set to true.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28110 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-30 20:12:14 +00:00
Robin Dunn
fe5e444a73
Changes needed to accomodate wxTheClipboard now being a macro for wxClipboard::Get
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-21 22:37:35 +00:00
Robin Dunn
3afe2fd691
Fix a couple warnings
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-11 22:46:47 +00:00
Robin Dunn
ab1f7d2aa9
All the Window and GDI (pen, bitmap, etc.) classes and also many
...
toplevel functions will now check that a wx.App object has already
been created and will raise a wx.PyNoAppError exception if not.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-01 21:38:05 +00:00
Robin Dunn
6186384153
comments and cleanup
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27493 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-28 20:40:12 +00:00
Robin Dunn
89c876de1c
wxGTK now uses gtk_init_check so wxPython can raise an exception if
...
there is no DISPLAY available or other initializaion problem.
wx.GetKeyState now has an implementation for wxGTK and is able to
detect the up/down or toggle state of modifier and toggle keys.
The LC_NUMERIC locale is now reset back to "C" (compatibility) when
running on wxGTK to work around the fact that GTK requires the locale
to be set to the system settings but Python depends on LC_NUMERIC
remaining compatible with "C".
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-21 00:23:50 +00:00
Robin Dunn
a31507415d
wx.InitAllImageHandlers is now an empty function that does nothing but
...
exist for backwards compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27320 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-17 19:16:17 +00:00
Robin Dunn
14af60da8b
It's now wx._core
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-27 19:36:16 +00:00
Robin Dunn
9c605df769
Use GetHandle for Mac too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26803 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-15 19:27:54 +00:00
Robin Dunn
98bc3dcf46
simplify how the XWindow is extracted for GetHandle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26766 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:57:47 +00:00
Robin Dunn
3eb1aad7ec
Check for errors after unicode conversions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-06 05:37:20 +00:00
Robin Dunn
70e45c91bb
The reinit of the stock objects shoudl not happen when wxPython is
...
embedded in a C++ wx application
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-01 19:23:12 +00:00
Robin Dunn
27b60fafb8
Don't use PyThreadState_Swap to get the current tstate, block threads
...
only if the current tstate is not the one expected.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 16:59:56 +00:00
Robin Dunn
da32eb53cb
Changed (again) how the GIL is aquired and the tstate restored. This
...
time it's simpler, better, and handles the case where there is a wx
calback/event while the GIL has been released by a non-wxPython
extension module.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26324 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-24 23:09:59 +00:00
Robin Dunn
b7c75283f2
Lindsay Mathieson's newest wxActiveX class has been wrapped into a new
...
extension module called wx.activex. Lots of demo and lib updates to
go along with it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26301 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-23 05:29:50 +00:00
Robin Dunn
dd346b947b
Added wx.PlatformInfo which is a tuple containing strings that
...
describe the platform and build options of wxPython.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26174 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-10 18:53:01 +00:00
Robin Dunn
26eac43ed1
Allow wxApp::MacOpenFile, MacPrintFile, MacNewFile, and MacReopenApp
...
to be overridden in Python.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26164 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-10 03:19:51 +00:00
Robin Dunn
22faec7d06
Allow comparrisons with None
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25857 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-19 02:33:28 +00:00
Robin Dunn
1b35fec738
Gave wxWindow.GetHandle something to do on wxMac, although it won't
...
have exactly the same meaning as the other platforms.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-13 20:24:47 +00:00
Robin Dunn
93b663b8cc
Fix incorrect #if in OnSysTell
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-26 22:45:21 +00:00
Robin Dunn
b856768b04
Allow nested calls to wxPy[Begin|End]BlockThreads instead of
...
deadlocking when the nested calls try to aquire the Python GIL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25176 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-15 01:06:39 +00:00
Robin Dunn
e4f4d6533d
Fix compile error when building for Python 2.2
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-29 23:07:26 +00:00
Robin Dunn
9e58eb5674
Reworked how stock objects are initialized. They now have an
...
alternate __class__ until the App is initialized so they will raise an
exception if anybody tries to use them before the C++ object has been
created.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-17 23:59:57 +00:00
Robin Dunn
f048f8290f
Fixed the double traceback when an exception happens in OnInit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-12-05 00:40:29 +00:00
Robin Dunn
3b7224dc83
More Unicode fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24657 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-24 19:10:45 +00:00
Robin Dunn
dd9f7fea29
Changed all TRUE/true --> True and all FALSE/false --> False so the
...
Python docstrings will have the correct case.
Started adding extra docstrings where needed.
Some other little tweaks and fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-19 06:31:30 +00:00
Robin Dunn
d14a1e2856
Merged the wxPy_newswig branch into the HEAD branch (main trunk)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-11-12 21:34:20 +00:00
Robin Dunn
098d1f0c65
Save the initial tstate during initialization
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-10-22 17:23:36 +00:00
Robin Dunn
7ea515abfb
Various changes needed to get up to date with current CVS
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-30 21:04:25 +00:00
Robin Dunn
36a73f1d03
Changes for removing DefaultEncodingIsPC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23714 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-19 16:46:03 +00:00
Robin Dunn
3628e08886
Added Python wrappers for wxRTTI for the wxVScrolledWindow,
...
wxVListBox, and wxHtmlListBox classes.
Removed the calls to wxClassInfo::Cleanup and Initialize.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22713 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-08 21:32:52 +00:00
Robin Dunn
3734a86630
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/trunk@22424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-31 19:21:48 +00:00
Robin Dunn
d84a9306f0
Build fixes and reSWIGs for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22283 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-25 00:34:15 +00:00
Robin Dunn
3ef86e32dd
Lots of changes for wxPython to start using many of the new featues in
...
wxWindows 2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-24 00:28:34 +00:00
Robin Dunn
dd116e73f0
Minimal changes needed to build/run wxPython on the 2.5 branch after
...
the merge. Still need to look for and apply most changes and new
additions that have happened since the last merge.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-18 02:26:53 +00:00
Robin Dunn
1fded56b37
wxPython Merge #2 of 2.4 branch --> HEAD (branch tag: wxPy_2_4_merge_2)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21593 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 23:13:10 +00:00
Robin Dunn
1e4a197e4c
Merged wxPython 2.4.x to the 2.5 branch (Finally!!!)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-25 06:35:27 +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