Beispiel #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()
             ionest.closeGame(gmwidg, gameDic[gmwidg])
             return True
         elif len(gameDic) >= 1 and conf.get("closeAll", False):
             ionest.closeAllGames(gameDic.items())
             return True
     if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK,
                                                  Gtk.ResponseType.YES):
         Gtk.main_quit()
     else:
         return True
Beispiel #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()
             ionest.closeGame(gmwidg, gameDic[gmwidg])
             return True
         elif len(gameDic) >= 1 and conf.get("closeAll", False):
             ionest.closeAllGames(gameDic.items())
             return True
     if ionest.closeAllGames(gameDic.items()) in (Gtk.ResponseType.OK,
                                                  Gtk.ResponseType.YES):
         Gtk.main_quit()
     else:
         return True
Beispiel #3
0
 def on_close1_activate(self, widget):
     gmwidg = gamewidget.cur_gmwidg()
     response = ionest.closeGame(gmwidg, gameDic[gmwidg])
Beispiel #4
0
 def on_close1_activate(self, widget):
     gmwidg = gamewidget.cur_gmwidg()
     response = ionest.closeGame(gmwidg, gameDic[gmwidg])