Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 5
0
Archivo: Main.py Proyecto: btrent/knave
 def on_quit1_activate (widget, *args):
     if ionest.closeAllGames(gameDic.items()) in (gtk.RESPONSE_OK, gtk.RESPONSE_YES):
         gtk.main_quit()
     else: return True