X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c25f90f60ceb17d33900f6a94f7f4ff2a009c584..8237a1c052547f37baf330b5a5ed044aa2ed704c:/wxPython/src/_timer.i?ds=sidebyside diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 70dc914acf..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._setOORInfo(self, 0);" setCallbackInfo(Timer); + "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