def run(self): gtk.gdk.threads_init() DBusGMainLoop(set_as_default=True) hmi = HMIService() while True: gtk.main_iteration()