X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7722248d7510121367c9d4db7af1156197c26e82..b4e7f826aff0f60826543bec9e1cb3fbcbeb0589:/wxPython/src/_timer.i diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 6d669bc44f..a82aa5a626 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -40,7 +40,7 @@ IMP_PYCALLBACK__(wxPyTimer, wxTimer, Notify); %name(Timer) class wxPyTimer : public wxEvtHandler { public: - %addtofunc wxPyTimer "self._setCallbackInfo(self, Timer)" + %pythonAppend wxPyTimer "self._setCallbackInfo(self, Timer)" // if you don't call SetOwner() or provide an owner in the contstructor // then you must override Notify() inorder to receive the timer @@ -78,6 +78,10 @@ public: // return True if the timer is one shot bool IsOneShot() const; + + // return the timer ID + int GetId() const; + };