Beispiel #1
0
 def on_actionNew_Game_triggered(self):
     from newgame import NewGameDialog
     self.newgame = NewGameDialog()
     from modules import databaseaccess
     teamsDict = databaseaccess.get_Teams()
     for team_id in teamsDict:
         self.newgame.team1.addItem(teamsDict[team_id], team_id)
         self.newgame.team2.addItem(teamsDict[team_id], team_id)
     self.newgame.show()
     self.connect(self.newgame.accept, SIGNAL("clicked()"),
                  self.acceptedClicked)
     self.connect(self.newgame.reject, SIGNAL("clicked()"),
                  self.rejectedClicked)