wx.Timer incorrect binding
Status: Beta
Brought to you by:
riaan
by default, boa generates code like:
self.ReloadTimer = wx.Timer(id=wxID_MAINFRAMETIMER1,
owner=self)
self.ReloadTimer.Bind(wx.EVT_TIMER, self.OnReloadTimer,
id=wxID_MAINFRAMETIMER1)
This code will never call OnReloadTimer.
It should be self.Bind(wx.EVT_TIMER,
self.OnReloadTimer, id=wxID_MAINFRAMETIMER1)
hello,after i create a timer,then i bind it,but where to set time start? how to set timer.Start()? can you help me?
Looking forward to your reply~3Q