X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994453b843b007de6367fedbf4a49ac9d920c63c..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/src/_timer.i diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index a883c73b66..3f227d5d37 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -42,6 +42,12 @@ wxPyTimer::wxPyTimer(wxEvtHandler *owner, int id) if (owner == NULL) SetOwner(this); } + +wxPyTimer::~wxPyTimer() +{ +// printf("-=* ~wxPyTimer\n"); +} + %} @@ -55,7 +61,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); self.this.own(True); " 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 +72,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.