K
Kiran
I am creating 2 timers inside a GUI, but it seems that only the one
declared last (the second timer), gets triggered, but the first one
doesnt.
Here is the code for the timers:
# main timer, which governs when the register watcher get updated
self.mainTimer = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.UpdateAll, self.mainTimer)
self.mainTimer.Start(5, False)
# graph timer, which governs when the graph gets updated
self.grphTimer = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.upGrphDisplay, self.grphTimer)
self.grphTimer.Start(101, False)
So in this case, only the upGrphDisplay method gets called, the
UpdateAll function doesnt get called.
Any clues as to why this is happening?
thanks a lot!
-- kiran
declared last (the second timer), gets triggered, but the first one
doesnt.
Here is the code for the timers:
# main timer, which governs when the register watcher get updated
self.mainTimer = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.UpdateAll, self.mainTimer)
self.mainTimer.Start(5, False)
# graph timer, which governs when the graph gets updated
self.grphTimer = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.upGrphDisplay, self.grphTimer)
self.grphTimer.Start(101, False)
So in this case, only the upGrphDisplay method gets called, the
UpdateAll function doesnt get called.
Any clues as to why this is happening?
thanks a lot!
-- kiran