More usage of the nobody color

This commit is contained in:
Sebastian Lohff 2013-11-25 19:27:31 +01:00
parent e0de9a4f31
commit 88fdac4cd2
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ from PySide import QtGui, QtCore
import copy import copy
from gamestate import QuestionAnswers from gamestate import QuestionAnswers
from player import Player, ButtonEvent from player import Player, ButtonEvent, nobodyColor
class QuestionWindow(QtGui.QDialog): class QuestionWindow(QtGui.QDialog):
def __init__(self, players, section, qnumber, question, answers=None, parent=None): def __init__(self, players, section, qnumber, question, answers=None, parent=None):
@ -247,7 +247,7 @@ class EditAnswersWindow(QtGui.QDialog):
self._addAnswerButton(player, correct) self._addAnswerButton(player, correct)
# add the nobody button # add the nobody button
self._addAnswerButton(Player("nobody", QtGui.QColor(128, 128, 128)), self._nobody) self._addAnswerButton(Player("nobody", nobodyColor), self._nobody)
def _addAnswerButton(self, player, correct=False): def _addAnswerButton(self, player, correct=False):
prefix = "+" if correct else "-" prefix = "+" if correct else "-"