Commit Graph

53 Commits

Author SHA1 Message Date
Robin Dunn
203c2f9a9a changes to match recent CVS updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15682 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-27 17:52:57 +00:00
Robin Dunn
b787b2a9d7 swigged updated code for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-04 04:53:14 +00:00
Robin Dunn
5d26a7e65f Changes for the embedded sample to build on Linux
Swigged updates for wxGTK


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-02 06:18:39 +00:00
Robin Dunn
6e2129f90f Changed the name of export.h to wxPython.h so it wouldn't be so
generic.  This is the header that should be included by 3rd party
stuff that is embedding wxPython or making a new wxPython extension
module.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-05-02 02:46:14 +00:00
Robin Dunn
4069916857 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14935 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-04 05:44:55 +00:00
Robin Dunn
a323d3bda7 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14930 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-03 19:25:11 +00:00
Robin Dunn
68bc8549d8 Move font and encoding related classes to a new module. Added
wxLocale and wxEncodingConverter.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14926 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-03 18:15:21 +00:00
Robin Dunn
c3bfa1cb28 SWIGged updates for wxMac
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14710 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-21 20:35:45 +00:00
Robin Dunn
9a74fcaf97 SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-21 06:48:55 +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
6824d4f9e0 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@14535 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-03-10 00:40:13 +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
f54a35fe22 Updated the build docs a bit, added wxMetafileDataObject, and some
cleanup and fixes here and there.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-02-06 21:03:27 +00:00
Václav Slavík
8a05370420 use the new wxSystemSettings API everywhere
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-01-08 23:35:26 +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
474c48f92e wxGTK SWIGged updates for:
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@13128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-20 07:08:06 +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
80cb3dbc36 SWIGged code updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12510 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 06:30:33 +00:00
Robin Dunn
262e41eb55 SWIGged code updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12507 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 02:52:07 +00:00
Robin Dunn
c3819e4aa4 Added the WX_GL constants
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12502 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-20 02:04:03 +00:00
Robin Dunn
08da19d737 SWIGged code uodates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-19 20:41:48 +00:00
Robin Dunn
5b119149c0 wxGLCanvas updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-13 03:08:53 +00:00
Robin Dunn
b6e5c4450a Added build instructions for OS X.
Added a very simple demo to help build functionality bit by bit.
Regenerated the files that needed SWIGging.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-09 23:19:16 +00:00
Robin Dunn
b66824a572 wxPython updates to match recent updates to wxCalendarCtrl, wxGrid,
and wxGLCanvas.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12280 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-02 23:21:45 +00:00
Robin Dunn
ab11ebfa19 wxPython updates to match recent updates to wxCalendarCtrl, wxGrid,
and wxGLCanvas.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12278 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-02 20:56:23 +00:00
Robin Dunn
e6056257ab First pass at wxPython for Mac (darwin only so far). It
builds but doesn't run yet.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12177 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-27 00:08:14 +00:00
Robin Dunn
3bcd5e1c64 An incorrect patch to SWIG caused incorrect generated code. Fixed and regenerated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-18 19:26:06 +00:00
Robin Dunn
de448406da regenerated from glcanvas.i
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12033 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-16 19:05:03 +00:00
Robin Dunn
0220cbc169 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@11963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-13 00:41:21 +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
32c988a34d Fixed duplicate definition of wxWindow::SetAcceleratorTable, more swig
code regenerated.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11839 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-04 19:19:56 +00:00
Robin Dunn
65fe3842bf Regenerated some swig code, added some missing WXK_ constants, etc...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11835 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-10-04 17:13:28 +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
9df61a29d2 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@10202 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-18 05:20:01 +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
794c5cb151 updated generated sources for wxMSW
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 00:13:42 +00:00
Robin Dunn
7a446686f0 Fixes for some changed stuff in wxHTML
Fixed an annoying ocmpiler warning in the generated code
Regenerated code for wxGTK


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-05-08 00:08:55 +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
4662be5945 updates of generated sources for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-04-02 05:34:17 +00:00
Robin Dunn
8a721b35f6 fixed compile warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9591 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-26 22:18:00 +00:00
Robin Dunn
19cf4f8086 Removed initial startup dependency on the OpenGL DLLs so only the
glcanvasc.pyd depends on them, not wxNN_N.dll


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9588 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-03-26 21:31:04 +00:00
Robin Dunn
9c4165adfa Copied/merged from the 2.2 branch.
Changes needed to build with new event system


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-16 08:49:41 +00:00
Robin Dunn
1b62f00d8e Copied/merged from the 2.2 branch.
Changes needed to build with new event system


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-02-16 08:19:50 +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
e508a2b616 Added the wxClassInfo stuff back in to the modules that are
standalone.  This is needed so any classes defined in the module will
get hooked up with their parents and assertions like "is wxWindow"
will work.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-22 22:32:26 +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
1e7ecb7be0 Massive code changes and cleanup to allow wxPython to be split into
multiple extension modules again.  A Python CObject is used to allow
the "export" of SWIG and other common helper functions from the wxc
module to other modules, even if they are in separate shared
libraries.  Should also be usable from 3rd party code, just include
wxPython/src/export.h

Changed the default setup so the following are built as separate
extension modules:  calendar, glcanvas, grid, html, ogl, stc, and
utils.  Will probably add more later.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8984 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-22 00:06:04 +00:00
Robin Dunn
2cd2fac87f Fixed a bunch of leaking references in how the callbacks deal with
objects.  Should be MUCH better now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8901 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-11 02:53:24 +00:00
Robin Dunn
de20db997d Fixed a bunch of leaking references in how the callbacks deal with
objects.  Should be MUCH better now.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-12-10 08:37:52 +00:00
Robin Dunn
185d7c3ee4 New typemaps for wxString when compiling for Python 2.0 and beyond
that allow Unicode objects to be passed as well as String objects.  If
a Unicode object is passed PyString_AsStringAndSize is used to convert
it to a wxString using the default encoding.

Fixed the generic buttons so tool tips work for them.

Fixed a bug in the demo's tree control.

Added a listbox to the listbox demo that shows how to find items with
a patching prefix as keys are typed.

Added code to the wxListCtrl demo to show how to get text from a
column in report mode.

Added code to the toolbar demo to clear the long help from the status
bar after 2 seconds.

Added wxJoystick.

Fixed wxTimer so it can be used as described in the docs, either with
a Notify method in a subclass, or sending an event to a wxEvtHandler
object, (usually a window.)

Added wxNotifyEvent.Allow()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8764 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2000-11-21 03:44:14 +00:00