From 8ea44f22ea3cb0a83969c5c37a73f7608909755c Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Fri, 22 Nov 2013 02:28:12 +0100 Subject: [PATCH] Extra key to get to start window --- game.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/game.py b/game.py index b3bb3be..37fdc34 100644 --- a/game.py +++ b/game.py @@ -88,6 +88,11 @@ class SeopardyGame(QtGui.QWidget): def keyPressEvent(self, e): if e.key() == QtCore.Qt.Key_Escape: 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: if self._inOtherWindow: return