X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/313feadc84cdf5501da71c41178c35bb7bed32eb..4e819f106b95b247b5f4911fab2f59ada1f94290:/wxPython/src/_timer.i diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 1042c7f52f..b84e0db64b 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -53,6 +53,8 @@ void wxPyTimer::base_Notify() { +MustHaveApp(wxPyTimer); + %name(Timer) class wxPyTimer : public wxEvtHandler { public: @@ -78,7 +80,7 @@ public: // // it is now valid to call Start() multiple times: this just restarts the // timer if it is already running - virtual bool Start(int milliseconds = -1, bool oneShot = False); + virtual bool Start(int milliseconds = -1, bool oneShot = false); // stop the timer virtual void Stop(); @@ -130,15 +132,16 @@ public: // wxTimerRunner: starts the timer in its ctor, stops in the dtor +MustHaveApp(wxTimerRunner); class wxTimerRunner { public: %nokwargs wxTimerRunner; wxTimerRunner(wxTimer& timer); - wxTimerRunner(wxTimer& timer, int milli, bool oneShot = False); + wxTimerRunner(wxTimer& timer, int milli, bool oneShot = false); ~wxTimerRunner(); - void Start(int milli, bool oneShot = False); + void Start(int milli, bool oneShot = false); };