Robin Dunn
94fd5e4dc1
Allow the OOR reference to be saved without doing an INCREF. This
...
solves the circular reference problem with wx.Timer.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 22:50:29 +00:00
Robin Dunn
27c9e43cc0
Instead of always using the Python default encoding for converting
...
string and unicode objects to/from wxStrings.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-15 21:15:28 +00:00
Robin Dunn
f464a4f2af
Added wxPyInputStream dtor. Use PyLong_FromLongLong iff needed for wxFileOffset
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30639 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 19:28:46 +00:00
Robin Dunn
ab897a69db
Reset LC_NUMERIC to "C" for Python < 2.4. This fixes Python's float parser.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-12 18:12:49 +00:00
Vadim Zeitlin
588066b7a3
replaced wxStream::GetSize() with GetLength() (still keep the former but it will be deprecated) (second part of patch 1063498)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-10 21:10:30 +00:00
Robin Dunn
db301e681f
Tweak unicode --> string conversion helper so UnicodeDecodeError is
...
raised when appropriate instead ofg just catching everything and
raising TypeError
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 19:28:34 +00:00
Robin Dunn
ae13f29275
* Don't reset LC_NUMERIC if on Python 2.4
...
* Always save the tstate
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29860 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-15 00:54:53 +00:00
Robin Dunn
9fd1fa4b1a
check for wxHAS_HUGE_FILES
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-09 01:26:43 +00:00
Robin Dunn
1c97259a91
A better fix for GetXWindow that can handle both the wx widgets and
...
the native widgets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-30 01:17:18 +00:00
Robin Dunn
3bc06221f0
off_t --> wxFileOffset changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29544 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-29 16:42:36 +00:00
Robin Dunn
ce102f9d50
Corected GetXWindow macro for wxGTK port. (Bug# 1033681)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 16:18:37 +00:00
Robin Dunn
4519a2d911
More True/False fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29304 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-24 00:11:19 +00:00
Robin Dunn
0320aeddcd
ensure that the wxString gets all the wide chars
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-10 21:36:25 +00:00
Robin Dunn
6f845b2215
Only initialize wxWidgets once
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28928 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-08-26 17:07:46 +00:00
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