Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 5
0
 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()