def set_icon_timer(self):
"""
Sets the icon timer to kick off the main loop.
"""
self.icon_timer = wx.Timer(self, ID_ICON_TIMER)
wx.EVT_TIMER(self, ID_ICON_TIMER, self.do_update)
self.icon_timer.Start(self.conf.get_int('Behavior', 'timer'))
self.do_update() # Fire the first right away
评论列表
文章目录