def run_pi(self):
# suppresses error: Couldn't connect to accessibility bus:
# Failed to connect to socket:
shell_this("export NO_AT_BRIDGE=1")
# listener loop for icon switch signals
ui_thread = Thread(target=self.update_icon)
ui_thread.daemon = True
ui_thread.start()
# starting Gtk main:
Gtk.main()
评论列表
文章目录