From 66ddb39bbebcda7ad7e3ed5127a34265a1bafc17 Mon Sep 17 00:00:00 2001 From: Sebastian Lohff Date: Tue, 6 Jan 2015 20:06:33 +0100 Subject: [PATCH] Window titles --- game.py | 1 + windows.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/game.py b/game.py index 891721b..a87abe4 100644 --- a/game.py +++ b/game.py @@ -23,6 +23,7 @@ class SeopardyGame(QtGui.QWidget): self._inOtherWindow = False self._createGui() + self.setWindowTitle("Seopardy - Board") self.showFullScreen() # initiate starting the game! diff --git a/windows.py b/windows.py index d6fb47f..9e45272 100644 --- a/windows.py +++ b/windows.py @@ -188,6 +188,8 @@ class QuestionAnswerWindow(QtGui.QDialog): self.player = player self._setupGui() + self.setWindowTitle("Seopardy - Answer by Player %s" % (self.player.name,)) + # move window to bottom right of screen g = QtGui.QApplication.desktop().screenGeometry() @@ -232,6 +234,7 @@ class EditAnswersWindow(QtGui.QDialog): self._tries = [] self._setupGui() + self.setWindowTitle("Seopardy - Edit Answers") self.installEventFilter(KeyGrabber((QtCore.Qt.Key.Key_Left, QtCore.Qt.Key.Key_Right), self)) @@ -399,6 +402,7 @@ class PlayerStartWindow(QtGui.QDialog): self._windowSetup = False self._setupGui() + self.setWindowTitle("Seopardy - Start") self.show() MusicBox.play_music("startSong") @@ -489,6 +493,7 @@ class VictoryWindow(QtGui.QDialog): self._parent = parent self._setupGui() + self.setWindowTitle("Seopardy - Victory") MusicBox.play_music("closingSong") def _setupGui(self): @@ -530,6 +535,7 @@ class DoubleJeopardyWindow(QtGui.QDialog): self._currentPoints = points self._setupGui() + self.setWindowTitle("Seopardy - Double Jeopardy") # move window to bottom right of screen g = QtGui.QApplication.desktop().screenGeometry()