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
Robin Dunn
0bfd735e1f
Remove py_objasdbl_conv typedef
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-19 20:06:09 +00:00
Robin Dunn
6b9f434ef3
* wxPrintDialog no longer derives from wxDialog.
...
* Add wxRTTI info for wxPyPrintout
* wxPrintFactory probably doesn't need to be exposed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30511 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-13 02:30:14 +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
047b2059cf
forward declare wxPyTaskBarIcon
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29785 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-11 17:12:43 +00:00
Robin Dunn
f5bd42d10b
Change macro used for OnGetItemImage so it ignores the base class
...
version
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29743 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-09 01:25:33 +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
a72f4631fe
Update SWIG patch to output "True" ("False") in the autodoc string
...
when "true" ("false") is in the .i file.
Changed the .i files to use true/false to avoid collisions with any
True/False in headers that may be included.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-23 20:23:54 +00:00
Robin Dunn
0190c47234
New SWIG runtime files and api updates for the move to SWIG 1.3.22
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-09 18:48:25 +00:00