Use a swig macro for generating the call to the _setCallbackInfo
function so it's easy to fiddle with, if needed. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -47,9 +47,7 @@ DocStr(wxPyApp,
|
||||
class wxPyApp : public wxEvtHandler {
|
||||
public:
|
||||
|
||||
%pythonAppend wxPyApp
|
||||
"self._setCallbackInfo(self, PyApp, False)
|
||||
self._setOORInfo(self, False)";
|
||||
%pythonAppend wxPyApp "self._setOORInfo(self, False);" setCallbackInfo(PyApp)
|
||||
%typemap(out) wxPyApp*; // turn off this typemap
|
||||
|
||||
DocStr(wxPyApp,
|
||||
@@ -67,7 +65,7 @@ public:
|
||||
%typemap(out) wxPyApp* { $result = wxPyMake_wxObject($1, $owner); }
|
||||
|
||||
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, bool incref);
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, bool incref=false);
|
||||
|
||||
|
||||
DocDeclStr(
|
||||
|
||||
Reference in New Issue
Block a user