I am using wx.Timer to update a clock on a wxPython display. The relevant lines of code look like this:
timer = wx.Timer(self, -1)
self.Bind(wx.EV T_TIMER, self.onTick, timer)
timer.Start(mil liseconds=1000, oneShot=False)
where self.onTick(sel f.event) handles the event every second by printing "TICK".
This works on WindowsXP but not on MacOSX. On MacOSX, onTick() never gets called at all.
What am I doing wrong??
timer = wx.Timer(self, -1)
self.Bind(wx.EV T_TIMER, self.onTick, timer)
timer.Start(mil liseconds=1000, oneShot=False)
where self.onTick(sel f.event) handles the event every second by printing "TICK".
This works on WindowsXP but not on MacOSX. On MacOSX, onTick() never gets called at all.
What am I doing wrong??
Comment