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:
@@ -55,7 +55,7 @@ public:
|
||||
// there won't be a reference cycle and it can clean itself up via normal
|
||||
// Python refcounting
|
||||
%pythonAppend wxPyTimer
|
||||
"self._setCallbackInfo(self, Timer, 0); self._setOORInfo(self, 0)"
|
||||
"self._setOORInfo(self, 0);" setCallbackInfo(Timer);
|
||||
|
||||
// if you don't call SetOwner() or provide an owner in the ctor
|
||||
// then you must override Notify() in order to receive the timer
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
// Destructor.
|
||||
virtual ~wxPyTimer();
|
||||
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref = 1);
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class, int incref = 0);
|
||||
|
||||
// Set the owner instance that will receive the EVT_TIMER events
|
||||
// using the given id.
|
||||
|
Reference in New Issue
Block a user