Less printing

This commit is contained in:
Sebastian Lohff 2013-11-28 20:13:57 +01:00
parent 324423371f
commit 64bee1c240
1 changed files with 0 additions and 4 deletions

View File

@ -67,8 +67,6 @@ class QuestionWindow(QtGui.QDialog):
def event(self, e):
if e.type() == ButtonEvent.eventType:
if e.get_playerno() <= len(self.players) and not self._inWindow:
print("Button", e.get_playerno())
self._inWindow = True
player = self.players[e.get_playerno()-1]
qawin = QuestionAnswerWindow(player, self)
@ -296,11 +294,9 @@ class PlayerStartWindow(QtGui.QDialog):
def event(self, e):
if e.type() == ButtonEvent.eventType:
if e.get_playerno() <= len(self.players)+1:
print("Button", e.get_playerno())
if e.get_playerno() == len(self.players)+1:
# add a new player
self._parent.add_player()
print("Player", self._players)
self._guiAddPlayer(self._players[-1])
self.playergrid.itemAtPosition(e.get_playerno()-1, 1).selectAll()
return True