Exemple #1
0
 def update_store(*args):
     allstore.clear()
     newGameDialog.createPlayerUIGlobals(discoverer)
     # don't add the very first (Human) player to engine store
     for item in newGameDialog.playerItems[0][1:]:
         allstore.append(item)
     update_options()
Exemple #2
0
 def update_store(*args):
     allstore.clear()
     newGameDialog.createPlayerUIGlobals(discoverer)
     # don't add the very first (Human) player to engine store
     for item in newGameDialog.playerItems[0][1:]:
         allstore.append(item)
     update_options()
Exemple #3
0
 def update_store(*args):
     newGameDialog.createPlayerUIGlobals(discoverer)
     engine_names = [row[1] for row in allstore]
     new_items = []
     # don't add the very first (Human) player to engine store
     for item in newGameDialog.playerItems[0][1:]:
         if item[1] not in engine_names:
             new_items.append(item)
     ts_iter = None
     for item in new_items:
         ts_iter = allstore.append(item)
     if ts_iter is not None:
         text_select = self.tv.get_selection()
         text_select.select_iter(ts_iter)
     update_options()
Exemple #4
0
 def update_store(*args):
     newGameDialog.createPlayerUIGlobals(discoverer)
     engine_names = [row[1] for row in allstore]
     new_items = []
     # don't add the very first (Human) player to engine store
     for item in newGameDialog.playerItems[0][1:]:
         if item[1] not in engine_names:
             new_items.append(item)
     iter = None
     for item in new_items:
         iter = allstore.append(item)
     if iter is not None:
         ts = self.tv.get_selection()
         ts.select_iter(iter)
     update_options()
 def update_store(self, *args):
     newGameDialog.createPlayerUIGlobals(discoverer)
     engine_names = [row[1] for row in self.allstore]
     new_items = []
     # don't add the very first (Human) player to engine store
     for item in newGameDialog.allEngineItems:
         if item[1] not in engine_names:
             new_items.append(item)
     ts_iter = None
     for item in new_items:
         ts_iter = self.allstore.append(item)
     if ts_iter is not None:
         text_select = self.tv.get_selection()
         text_select.select_iter(ts_iter)
     self.update_options()