/[thuban]
ViewVC logotype

Revision 2590


Jump to revision: Previous Next
Author: bh
Date: Tue Apr 5 17:26:58 2005 UTC (19 years, 11 months ago)
Changed paths: 4
Log Message:
Use wxPython.h by default but provide a workaround when it isn't
available.

* setup.py (wxproj_extension): New variable.  Assign the Extension
instance for Lib.wxproj to this variable instead of putting it
directly into the listso that it can be accessed by other code
later.
(thuban_build_ext.user_options): Added boolean option
--use-wx-python-swig-hack.
(thuban_build_ext.initialize_options): Initialize the new option
to False.
(thuban_build_ext.finalize_options): If the new option was given,
define the preprocesser macro USE_WX_PYTHON_SWIG_HACK.
(thuban_build_ext): Update the doc-string

* libraries/thuban/wxproj.cpp: Normally we use
wx/wxPython/wxPython.h now.  Only if USE_WX_PYTHON_SWIG_HACK is
defined, use swigPtrConvertHack.h instead.

* libraries/thuban/swigPtrConvertHack.h: Remove the code that was
copied over from wxPython.h.
(decode_pointer_new): New.  Equivalent of decode_pointer for
wxPython 2.5.
(wxPyConvertSwigPtr): Modified to cope with wxPython 2.5 as well.


Changed paths

Path Details
Directorytrunk/thuban/ChangeLog modified , text changed
Directorytrunk/thuban/libraries/thuban/swigPtrConvertHack.h modified , text changed
Directorytrunk/thuban/libraries/thuban/wxproj.cpp modified , text changed
Directorytrunk/thuban/setup.py modified , text changed

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26