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
This commit is contained in:
@@ -55,7 +55,8 @@ IMP_PYCALLBACK_BOOL_DR(wxPyDropSource, wxDropSource, GiveFeedback);
|
||||
%}
|
||||
|
||||
|
||||
%name(DropSource) class wxPyDropSource {
|
||||
%rename(DropSource) wxPyDropSource;
|
||||
class wxPyDropSource {
|
||||
public:
|
||||
%pythonAppend wxPyDropSource "self._setCallbackInfo(self, DropSource, 0)"
|
||||
#ifndef __WXGTK__
|
||||
@@ -115,7 +116,8 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyDropTarget, wxDropTarget, OnDrop);
|
||||
%}
|
||||
|
||||
|
||||
%name(DropTarget) class wxPyDropTarget // : public wxDropTarget
|
||||
%rename(DropTarget) wxPyDropTarget;
|
||||
class wxPyDropTarget // : public wxDropTarget
|
||||
{
|
||||
public:
|
||||
%pythonAppend wxPyDropTarget
|
||||
@@ -178,7 +180,8 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyTextDropTarget, wxTextDropTarget, OnDrop);
|
||||
|
||||
%}
|
||||
|
||||
%name(TextDropTarget) class wxPyTextDropTarget : public wxPyDropTarget {
|
||||
%rename(TextDropTarget) wxPyTextDropTarget;
|
||||
class wxPyTextDropTarget : public wxPyDropTarget {
|
||||
public:
|
||||
%pythonAppend wxPyTextDropTarget "self._setCallbackInfo(self, TextDropTarget)"
|
||||
|
||||
@@ -238,7 +241,8 @@ IMP_PYCALLBACK_BOOL_INTINT(wxPyFileDropTarget, wxFileDropTarget, OnDrop);
|
||||
%}
|
||||
|
||||
|
||||
%name(FileDropTarget) class wxPyFileDropTarget : public wxPyDropTarget
|
||||
%rename(FileDropTarget) wxPyFileDropTarget;
|
||||
class wxPyFileDropTarget : public wxPyDropTarget
|
||||
{
|
||||
public:
|
||||
%pythonAppend wxPyFileDropTarget "self._setCallbackInfo(self, FileDropTarget)"
|
||||
|
Reference in New Issue
Block a user