- wxButton(self, 11101, ' Start ', wxPoint(15, 75), wxDefaultSize)
- wxButton(self, 11102, ' Stop ', wxPoint(115, 75), wxDefaultSize)
- EVT_BUTTON(self, 11101, self.OnStart)
- EVT_BUTTON(self, 11102, self.OnStop)
+ wxButton(self, ID_Start, ' Start ', wxPoint(15, 75), wxDefaultSize)
+ wxButton(self, ID_Stop, ' Stop ', wxPoint(115, 75), wxDefaultSize)
+
+ self.timer = wxTimer(self, # object to send the event to
+ ID_Timer) # event id to use
+
+ EVT_BUTTON(self, ID_Start, self.OnStart)
+ EVT_BUTTON(self, ID_Stop, self.OnStop)
+ EVT_TIMER(self, ID_Timer, self.OnTimer)
+