Gave nobody a defined color
This commit is contained in:
parent
cedca2e8c9
commit
7ad21c516b
4
game.py
4
game.py
|
@ -2,7 +2,7 @@ from __future__ import print_function
|
||||||
|
|
||||||
from PySide import QtCore, QtGui
|
from PySide import QtCore, QtGui
|
||||||
|
|
||||||
from player import Player
|
from player import Player, nobodyColor
|
||||||
from windows import QuestionWindow, EditAnswersWindow, PlayerStartWindow, VictoryWindow
|
from windows import QuestionWindow, EditAnswersWindow, PlayerStartWindow, VictoryWindow
|
||||||
from gamestate import QuestionAnswers
|
from gamestate import QuestionAnswers
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ class SeopardyGame(QtGui.QWidget):
|
||||||
|
|
||||||
if not answers.got_answered():
|
if not answers.got_answered():
|
||||||
btnstr += "+nobody"
|
btnstr += "+nobody"
|
||||||
btncolor = QtGui.QColor(128, 128, 128)
|
btncolor = nobodyColor
|
||||||
|
|
||||||
btn.setStyleSheet("QPushButton { background-color: %s; color: white; font-size: 20px; border: none; }" % (btncolor.name(),))
|
btn.setStyleSheet("QPushButton { background-color: %s; color: white; font-size: 20px; border: none; }" % (btncolor.name(),))
|
||||||
btn.setText(btnstr.strip())
|
btn.setText(btnstr.strip())
|
||||||
|
|
Loading…
Reference in New Issue