Exemplo n.º 1
0
 def select_game (self):
     self.tb.hide()
     choice = game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
     if not choice:
         return True
     self.timer.start_timing()
     if choice[0] == game_selector.NewOrSavedGameSelector.NEW_GAME:
         self.gsd.change_grid(choice[1], 9)
     if choice[0] == game_selector.NewOrSavedGameSelector.SAVED_GAME:
         saver.open_game(self, choice[1])
     if self.settings.get_boolean('show-toolbar'):
         self.tb.show()
     if self.settings.get_boolean('always-show-hints'):
         self.gsd.update_all_hints()
     if self.settings.get_boolean('highlight'):
         self.gsd.toggle_highlight(True)
Exemplo n.º 2
0
 def select_game(self):
     self.tb.hide()
     choice = game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
     if not choice:
         return True
     self.timer.start_timing()
     if choice[0] == game_selector.NewOrSavedGameSelector.NEW_GAME:
         self.gsd.change_grid(choice[1], 9)
     if choice[0] == game_selector.NewOrSavedGameSelector.SAVED_GAME:
         saver.open_game(self, choice[1])
     if self.gconf["show_toolbar"]:
         self.tb.show()
     if self.gconf["always_show_hints"]:
         self.gsd.update_all_hints()
     if self.gconf["highlight"]:
         self.gsd.toggle_highlight(True)
Exemplo n.º 3
0
 def select_game (self):
     self.tb.hide()
     self.update_statusbar()
     choice = game_selector.NewOrSavedGameSelector().run_swallowed_dialog(self.swallower)
     if not choice:
         return True
     self.timer.start_timing()
     if choice[0] == game_selector.NewOrSavedGameSelector.NEW_GAME:
         self.gsd.change_grid(choice[1], 9)
         self.update_statusbar()
     if choice[0] == game_selector.NewOrSavedGameSelector.SAVED_GAME:
         saver.open_game(self, choice[1])
         self.update_statusbar()
     if self.gconf['show_toolbar']:
         self.tb.show()
     if self.gconf['always_show_hints']:
         self.gsd.update_all_hints()
     if self.gconf['highlight']:
         self.gsd.toggle_highlight(True)
Exemplo n.º 4
0
 def open_game (self, ui, game):
     saver.open_game(ui,self.playing[game])
Exemplo n.º 5
0
 def open_game (self, ui, game):
     saver.open_game(ui,self.playing[game])