def destroy(self, widget, data=None): logger.debug("destroy signal occurred") for backend in self.cfg.get_backends(): backend.shutdown() gtk.main_quit()
def delete_event(self, widget, event, data=None): logger.debug("Delete event occurred") # Change FALSE to TRUE and the main window will not be destroyed return False