Commit Graph

59 Commits

Author SHA1 Message Date
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
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
3a8ed07180 use the API Ptr accessor for the inline functions too.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27712 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-09 17:50:45 +00:00
Robin Dunn
db7239958f typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-07 23:59:35 +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
da7b9cd05d Use an inline function to fetch the API pointer, importing it first if needed.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27491 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-28 20:01:55 +00:00
Robin Dunn
0e174ce890 No longer need to fallback to importing "_core_" as py2exe, Installer
and others now handle importing extensions via package names correctly.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27484 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-28 19:06:27 +00:00
Robin Dunn
1a10485f79 Add SetBestSize, GetDefaultAttributes and fixed ShouldInheritColours
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27284 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-14 21:37:26 +00:00
Robin Dunn
313feadc84 Add GetOwner accessor and fix wxRTTI inheritance for wxTimer. Set the
timer as the event object in wxTimerEvents.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-10 20:53:25 +00:00
Robin Dunn
9e4e25d550 Remove the need for the PyPen class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-27 19:29:16 +00:00
Robin Dunn
54f9ee4509 Renamed the core namespace's submodules to have a leading underscore.
This is so epydoc will automatically mark them as private and won't
document the objects they contain (they'll be docmented via the wx
module.)


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26945 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-25 06:51:10 +00:00
Robin Dunn
475f0bf814 whitespace cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26761 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-04-14 05:52:18 +00:00
Robin Dunn
9d3734c899 Forward declare wxPyScrolledWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-30 01:52:07 +00:00
Robin Dunn
d43da70602 Allow overriding ApplyParentThemeBackground
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-28 17:01:21 +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
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
3a0a61b066 New SWIG runtime files
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25895 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-21 03:26:31 +00:00
Robin Dunn
ef22e3d35e Use a local copy of the old wxBufferedDC classes until the ones in the
C++ library are fixed again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-02-21 01:53:46 +00:00
Robin Dunn
f904231a06 Fix compile error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 02:56:02 +00:00
Robin Dunn
d7f8258414 Updated SWIG runtime code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-01-31 01:13:31 +00:00