Try something like:
self.pollTimer = wx.PyTimer(self.poll)
self.pollTimer.Start(500, wx.TIMER_CONTINUOUS)
···
On Thu, Apr 10, 2008 at 1:51 PM, Alec Bennett <whatyoulookin@yahoo.com> wrote:
I'm running into an interesting problem with timers. I'm trying to have two, and haven't been
successful.For example:
ID_TIMER = wx.NewId()
print ID_TIMER
self.timer1 = wx.Timer(self)
self.Bind(wx.EVT_TIMER, self.check_timeout, self.timer1)
self.timer1.Start(500) # every half secondID_TIMER = wx.NewId()
self.timer2 = wx.Timer(self)
self.Bind(wx.EVT_TIMER, rebuildAllSmallPics(), self.timer2)
self.timer2.Start(30000) # every 10 minutesIn the above example, only the second timer is triggered. My theory is that since both timers are
bound to the wx.EVT_TIMER event, only the second one is bound.Is there some trick to using multiple simultaneous wx.Timers?
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
wxpython-users mailing list
wxpython-users@lists.wxwidgets.org
http://lists.wxwidgets.org/mailman/listinfo/wxpython-users