Commit Graph
87 Commits
Author SHA1 Message Date
Robin Dunn ece5ecd8fb Move #include of srchctrl.h to wxPython_int.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43909 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-11 07:19:22 +00:00
Robin Dunn 9e1729e51c fix some warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-05 18:11:20 +00:00
Vadim Zeitlin b7681018cb move default button handling code from wxControlContainer to wxTLW (patch 1524441)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43595 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 01:31:13 +00:00
Robin Dunn 84bc0d49e4 Added the wx.combo module, which contains the ComboCtrl and ComboPopup
classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-16 23:38:29 +00:00
Robin Dunn bafc875b60 move the include of collpane.h to the main header
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43329 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-12 02:32:43 +00:00
Robin Dunn 8f514ab459 Gobs of changes needed to get up to date with today's CVS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-31 00:57:21 +00:00
Robin Dunn 9ac884500c Add wxPyTabArt
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42601 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 03:00:47 +00:00
Robin Dunn debe38c933 Add wxRect2D
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42483 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 06:06:20 +00:00
Robin Dunn 281c54cc42 helpers and typemaps for new GraphicsContext methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41929 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 04:42:49 +00:00
Robin Dunn 8afc02ca49 Don't call BeginDrawing/EndDrawing, they're deprecated.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41923 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-11 04:01:29 +00:00
Robin Dunn 6f67d53729 Updates from Paul
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 23:53:44 +00:00
Robin Dunn 1ca848a2a9 release the GIL before calling base version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41236 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-14 20:39:33 +00:00
Robin Dunn 361bd11400 Avoid deprecation warnings for BeginDrawing and EndDrawing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40833 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-26 00:28:41 +00:00
Robin Dunn 4d9de11075 Add wx.App.DisplayAvailable() which can be used to determine if a GUI
can be created in the current environment.  (Still need an
implementation for wxMSW...)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40828 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-25 21:53:12 +00:00
Robin Dunn 238ba802f1 Added wx.BitmapFromBuffer and wx.BitmapFromBufferRGBA factory functions.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40748 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-22 17:27:42 +00:00
Robin Dunn a0c6044d7d remove WXDLLEXPORT modifiers since this isn't in the wx DLL
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-10 16:58:21 +00:00
Robin Dunn 7e664d85e6 Added the PseudoDC class from Paul Lanier. It provides a way to
record operations on a DC and then play them back later.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-10 15:06:31 +00:00
Robin Dunn febb39df07 Added wrappers for wxAUI
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-08 02:13:59 +00:00
Robin Dunn 9165401fbe Undeprecate wxGetNumberFromUser, add wxNumberEntryDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40032 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-06 22:15:24 +00:00
Robin Dunn a608c09d85 Changes needed for building with Python 2.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-05 00:37:11 +00:00
Robin Dunn 909b16f629 Make the picker headers accessible to all
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39767 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-17 20:50:01 +00:00
Robin Dunn e2e2649fab Correctly handle the release of ownership of the wx.FSFile returned
from wx.FileSystemHandler.OpenFile.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39703 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-13 22:25:33 +00:00
Robin Dunn d00077abbe Switch to overriding OnAssertFailure instead of OnAssert
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-10 03:31:01 +00:00
Robin Dunn 0fade4f147 More compilation fixes. Move dummy wxPowerEvent to where it can be
seen by other modules.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-06 17:50:09 +00:00
Robin Dunn 4e67f28fb7 Fixed compile error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-06-05 23:00:02 +00:00
Robin Dunn 57ffa5851d Redo (again) how the stock objects are initialized in wxPython.
Factor out the wxPyTwoIntItem_helper template function so it can be
used in other extension modules.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39008 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-05-04 02:03:39 +00:00
Robin Dunn 99a001dd43 Changed how the stock objects (wx.RED, wx.RED_PEN, wx.RED_BRUSH, etc.)
are initialized.  They are now created as a wrapper object that
initializes itself on first use (when an attribute of the object is
requested.)  This was needed because of similar delayed initialization
functionality that was implemented in wxWidgets, but the end result is
cleaner for wxPython as well, and allowed me to remove some ugly code
under the covers.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-18 21:49:48 +00:00
Robin Dunn 4725f47eb2 Various wxHtml updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-15 05:30:35 +00:00
Robin Dunn 8072477d51 Enable OnDrawSeparator and OnDrawBackground to be overridable in wx.HtmlListBox
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38126 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-16 02:30:42 +00:00
Robin Dunn ace78e271b SWIG 1.3.29
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 04:06:46 +00:00
Robin Dunn 369ac260a9 Sometimes we do need to allow recursion of callbacks
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-03-14 01:28:22 +00:00
Robin Dunn f0879a0a8f use wxRTTI to construct the right class of wxHtmlCell
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37456 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-10 18:38:43 +00:00
Robin Dunn a7a0141800 Changes to how overridable C++ methods are virtualized for Python.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-07 03:56:44 +00:00
Robin Dunn 6aabc8da32 Added wxPython wrappers for the new wx.Treebook and wx.Toolbook
classes.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-01 23:46:43 +00:00
Robin Dunn 1ea8df6e6b Changes needed to be able to build with SWIG 1.3.24, 1.3.27 as well as
the upcoming 1.3.28, using #if statements on SWIG_VERSION.

Adjustments to ownership of SWIG objects, add some destructors and
explicitly disown non-window objects when their ownership is
transfered to a C++ object.

Since all window objects are owned by their parent, or by themselves,
always set their thisown attribute to False.

Explicitly set thisown to False after any Destroy() methods are
called, so SWIG doesn't try to destroy them again.

Etc.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-29 02:33:00 +00:00
Robin Dunn e280c9ca95 Add supoprt for wxListCtrl::OnGetItemColumnImage
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37148 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-26 00:31:31 +00:00
Robin Dunn 1a14abf991 Clear possible exception from failed wxPyConvertSwigPtr
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-23 20:06:39 +00:00
Robin Dunn 4617be085f Another merge of 2.6 changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36914 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-01-17 05:42:30 +00:00
Robin Dunn 02b800ce7c Merged modifications from the 2.6 branch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-12-30 23:02:03 +00:00
Robin Dunn 5f57b149e6 wxDEFAULT_STATUSBAR_STYLE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-04 23:55:08 +00:00
Robin Dunn 7fac8e4af0 Ensure that SWIG_TYPE_TABLE is defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-04 22:53:36 +00:00
Robin Dunn 822e03eeff Don't use the PyGILState_* APIs with Python 2.3, it causes a problem
with Boa's debugger.  :-(


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32791 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-12 21:03:18 +00:00
Robin Dunn 6e6b35578d Use the PyGILState_* APIs on Python >= 2.3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32701 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-09 22:28:52 +00:00
Robin Dunn 43d6e3cae1 Move wxPyCallback back to derive from wxObject
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-08 00:41:35 +00:00
Robin Dunn d02ea46cad Add copy ctor for wxPyCBInputStream and use it to prevent double
deletion of the wxInputStream passed to wxFSFile


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-03-03 19:56:42 +00:00
Robin Dunn ac03a19f93 wxPyCallback needs to derive from wxEvtHandler now since the
wxObjectEventFunction typedef changed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32150 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-18 19:28:16 +00:00
Robin Dunn 91334b48e2 Added wx.DatePickerCtrl
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-18 04:52:13 +00:00
Robin Dunn 1b8c7ba607 Updated to SWIG 1.3.24 (plus a patch that corrects a bug and adds back
some things that were changed/removed from my patch I submitted to
them.)

Since it is now possible easily and simply share the SWIG type tables
across modules I reverted to always using the stock SWIG runtime
instead of my slightly hacked up version of it exported via the
wxPython C API.

The %name directive is now deprecated so replaced most uses of it with
a custom %Rename macro that uses %rename internally.  These will
evetually need to be replaced with a DocDecl macro when docstrings are
added.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-23 20:44:09 +00:00
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