- %pythonAppend wxPyTimer "self._setCallbackInfo(self, Timer, 0)"
-
-// %pythonAppend wxTimer
-// "if hasattr(self, 'Notify'):
-// print 'bound EVT_TIMER to self.Notify'
-// self.Bind(EVT_TIMER, self.Notify)
-// self.SetOwner(self)";
-
- // if you don't call SetOwner() or provide an owner in the contstructor
- // then you must override Notify() inorder to receive the timer
+ // Don't let the OOR or callback info hold references to the object so
+ // 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)"
+
+ // if you don't call SetOwner() or provide an owner in the ctor
+ // then you must override Notify() in order to receive the timer