def StopDaemon(self): try: self.t.release() except: pass common.rm_pid_file() mainloop.quit()
def handle_updates(updates): common.rm_pid_file() transaction.StopDaemon() loop.quit()
def handle_error(error): transaction.StopDaemon() common.rm_pid_file() print('check updates failed') loop.quit()
def on_Updater_CloseButton_clicked(*args): transaction.StopDaemon() common.rm_pid_file() Gtk.main_quit()
def on_UpdaterWindow_delete_event(*args): transaction.StopDaemon() common.rm_pid_file() Gtk.main_quit()
def on_ManagerWindow_delete_event(*args): transaction.StopDaemon() common.rm_pid_file() Gtk.main_quit()
def on_Updater_QuitButton_clicked(self, *arg): transaction.StopDaemon() common.rm_pid_file() Gtk.main_quit()
def on_ManagerWindow_delete_event(self, *arg): transaction.StopDaemon() common.rm_pid_file() Gtk.main_quit()