Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
 def on_quit1_activate (widget, *args):
     if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK, Gtk.ResponseType.YES):
         Gtk.main_quit()
     else: return True
Пример #4
0
 def on_quit1_activate(widget, *args):
     if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK,
                                                  Gtk.ResponseType.YES):
         Gtk.main_quit()
     else:
         return True
Пример #5
0
 def on_quit1_activate (widget, *args):
     if ionest.closeAllGames(gameDic.items()) in (gtk.RESPONSE_OK, gtk.RESPONSE_YES):
         gtk.main_quit()
     else: return True