Less printing
This commit is contained in:
parent
324423371f
commit
64bee1c240
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue