Commits

Yannick Gingras  committed 38e4dd3

added option to set window title

  • Participants
  • Parent commits 6484ee4

Comments (0)

Files changed (2)

     parser.add_argument("-p", "--popup", dest="popup_mode", 
                         action="store_true", default=False, 
                         help="open a popup window when time is over")
+    parser.add_argument("-t", "--title", dest="title", 
+                        default="Time Left", 
+                        help="set title of the timer window to TITLE")
     return parser.parse_args()
 
 def main():
     args = parse_args()
     app = QtGui.QApplication(sys.argv)
     win = TimepanalWin(args)
+    win.setWindowTitle(args.title)
     win.show()
     sys.exit(app.exec_())
 

File timepanalwin.py

                 win.raise_()
                 win.activateWindow()
                 QtGui.QMessageBox.information(win, "Time is over", 
-                                              "Timer ran out of time")
+                                              "Timer ran out of time.")
                     
 
     def resizeEvent(self, event):