Extra key to get to start window
This commit is contained in:
parent
ca8f014161
commit
8ea44f22ea
5
game.py
5
game.py
|
@ -88,6 +88,11 @@ class SeopardyGame(QtGui.QWidget):
|
||||||
def keyPressEvent(self, e):
|
def keyPressEvent(self, e):
|
||||||
if e.key() == QtCore.Qt.Key_Escape:
|
if e.key() == QtCore.Qt.Key_Escape:
|
||||||
self.close()
|
self.close()
|
||||||
|
elif e.key() == QtCore.Qt.Key_R:
|
||||||
|
x = PlayerStartWindow(self.players, self)
|
||||||
|
self._inOtherWindow = True
|
||||||
|
x.exec_()
|
||||||
|
self._inOtherWindow = False
|
||||||
elif e.key() == QtCore.Qt.Key_E:
|
elif e.key() == QtCore.Qt.Key_E:
|
||||||
if self._inOtherWindow:
|
if self._inOtherWindow:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue