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
Robin Dunn
4958ea8f7b
Added wxThread::GetCurrentId(), which returns an ID for the current
...
thread, even if it is not a wxThread.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-16 06:28:11 +00:00
Robin Dunn
1893b02945
SWIGged updates for wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-06 01:40:50 +00:00
Robin Dunn
0e2ff151af
SWIGged updates for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-20 17:01:09 +00:00
Robin Dunn
44f685055e
Forgot to recomment this out
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-19 23:51:46 +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
4a98c806e5
Added comment about an untested code path...
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12925 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-08 01:25:30 +00:00
Robin Dunn
78b57918f8
Nasty workaround for an incompatible low-level change in Python 2.2,
...
but it was undocumented before 2.2 so I guess that's what I get...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-08 01:15:15 +00:00
Robin Dunn
c594325333
Changes to ensure that GDI objects returned from Python methods are
...
copied, not just left as references. The old way was
counter-intuitive for Python.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-29 00:51:59 +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
8af26133d9
Bug fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12512 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 07:40:26 +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
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
2aab8f16ac
Added wxClientDataContainer to wxSizer, so sizers can now do OOR in
...
wxPython too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12130 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-21 03:56:07 +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
ecc08ead91
Various updates, changes for wxTopLevelWindow, fixes for
...
wxPen.SetDashes, etc.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-09-27 02:11:47 +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
3a0958b165
Various tweaks, fixes, and additions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-28 03:12:32 +00:00
Robin Dunn
0adbc1660e
Number() to GetCount() and other changes needed for wxPython to
...
compile with current CVS.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11037 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-07-14 03:37:47 +00:00
Robin Dunn
ac346f5046
Added sample to the demo for wxJoystick
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-20 01:18:39 +00:00
Robin Dunn
493f1553fd
Cleanup up the demo a bit
...
Added wxWave
Added another patch for SWIG that optimizes the generated code some
and eliminates some unused type mappings in the type registry.
(Reduces it by about half!)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 21:59:59 +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
a7fa65b96e
Fixed Tim's patch so it will compile when using a Python version < 2.0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-02 07:33:47 +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
1112b0c68c
wxPython now creates it's own Python thread state instead of using the
...
one that was active when it starts up.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-02 03:43:04 +00:00
Robin Dunn
83b18bab39
A bunch of little tweaks, fixes, and additions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9525 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-13 23:50:43 +00:00
Robin Dunn
3a70a28254
More cleanup. Regenerated wxGTK code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-24 07:31:31 +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