diff --git a/include/wx/timer.h b/include/wx/timer.h index 1707d8346e..a16209c387 100644 --- a/include/wx/timer.h +++ b/include/wx/timer.h @@ -90,6 +90,10 @@ public: // return TRUE if the timer is one shot bool IsOneShot() const { return m_oneShot; } + // return the timer ID + int GetId() const { return m_idTimer; } + + protected: // common part of all ctors void Init() { m_oneShot = FALSE; m_milli = 0; } diff --git a/wxPython/src/_timer.i b/wxPython/src/_timer.i index 6d669bc44f..b0d2dae880 100644 --- a/wxPython/src/_timer.i +++ b/wxPython/src/_timer.i @@ -78,6 +78,10 @@ public: // return True if the timer is one shot bool IsOneShot() const; + + // return the timer ID + int GetId() const; + };