def run(self):
try:
time.sleep(10) # Give WiFi a chance to connect
signal.signal(signal.SIGINT, signal.SIG_DFL)
self.indicator.set_menu(self.__menu())
self.refresh_source = GObject.timeout_add(REFRESH_RATES[0] * 60 * 1000, self.__update_price)
self.__update_price()
GObject.threads_init()
gtk.main()
except Exception:
pass
评论列表
文章目录