def on_quit1_activate(self, widget, *args): if isinstance(widget, Gdk.Event): if len(gameDic) == 1 and conf.get("hideTabs", False): gmwidg = gamewidget.cur_gmwidg() response = ionest.closeGame(gmwidg, gameDic[gmwidg]) return True elif len(gameDic) >= 1 and conf.get("closeAll", False): response = ionest.closeAllGames(gameDic.items()) return True if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK, Gtk.ResponseType.YES): Gtk.main_quit() else: return True
def on_quit1_activate (widget, *args): if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK, Gtk.ResponseType.YES): Gtk.main_quit() else: return True
def on_quit1_activate(widget, *args): if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK, Gtk.ResponseType.YES): Gtk.main_quit() else: return True
def on_quit1_activate (widget, *args): if ionest.closeAllGames(gameDic.items()) in (gtk.RESPONSE_OK, gtk.RESPONSE_YES): gtk.main_quit() else: return True