Browse Source

Window titles

Sebastian Lohff 5 years ago
parent
commit
66ddb39bbe
2 changed files with 7 additions and 0 deletions
  1. 1
    0
      game.py
  2. 6
    0
      windows.py

+ 1
- 0
game.py View File

@@ -23,6 +23,7 @@ class SeopardyGame(QtGui.QWidget):
23 23
 
24 24
 		self._inOtherWindow = False
25 25
 		self._createGui()
26
+		self.setWindowTitle("Seopardy - Board")
26 27
 		self.showFullScreen()
27 28
 
28 29
 		# initiate starting the game!

+ 6
- 0
windows.py View File

@@ -188,6 +188,8 @@ class QuestionAnswerWindow(QtGui.QDialog):
188 188
 		self.player = player
189 189
 
190 190
 		self._setupGui()
191
+		self.setWindowTitle("Seopardy - Answer by Player %s" % (self.player.name,))
192
+
191 193
 
192 194
 		# move window to bottom right of screen
193 195
 		g = QtGui.QApplication.desktop().screenGeometry()
@@ -232,6 +234,7 @@ class EditAnswersWindow(QtGui.QDialog):
232 234
 			self._tries = []
233 235
 
234 236
 		self._setupGui()
237
+		self.setWindowTitle("Seopardy - Edit Answers")
235 238
 
236 239
 		self.installEventFilter(KeyGrabber((QtCore.Qt.Key.Key_Left, QtCore.Qt.Key.Key_Right), self))
237 240
 
@@ -399,6 +402,7 @@ class PlayerStartWindow(QtGui.QDialog):
399 402
 		self._windowSetup = False
400 403
 
401 404
 		self._setupGui()
405
+		self.setWindowTitle("Seopardy - Start")
402 406
 		self.show()
403 407
 		MusicBox.play_music("startSong")
404 408
 
@@ -489,6 +493,7 @@ class VictoryWindow(QtGui.QDialog):
489 493
 		self._parent = parent
490 494
 
491 495
 		self._setupGui()
496
+		self.setWindowTitle("Seopardy - Victory")
492 497
 		MusicBox.play_music("closingSong")
493 498
 
494 499
 	def _setupGui(self):
@@ -530,6 +535,7 @@ class DoubleJeopardyWindow(QtGui.QDialog):
530 535
 			self._currentPoints = points
531 536
 
532 537
 		self._setupGui()
538
+		self.setWindowTitle("Seopardy - Double Jeopardy")
533 539
 
534 540
 		# move window to bottom right of screen
535 541
 		g = QtGui.QApplication.desktop().screenGeometry()

Loading…
Cancel
Save