- 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
+
+ self.timer2 = wxTimer(self, # object to send the event to
+ ID_Timer2) # 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)
+ EVT_TIMER(self, ID_Timer2, self.OnTimer2)