Show initial loading window while waiting for makemkv
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 17 Feb 2013 01:01:30 +0000 (12:01 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 17 Feb 2013 01:01:30 +0000 (12:01 +1100)
bluplayer.py

index 4b6f2b8..42db223 100755 (executable)
@@ -321,6 +321,18 @@ def main():
        player_window.video_selected.connect(mplayer.play)
        mplayer.play_finished.connect(player_window.set_play_finished)
 
+       loading_window = QProgressDialog(
+               "Loading BluRay disc. Please wait...",
+               "Exit",
+               0, 0, # 'infinite' style progress bar
+               player_window
+       )
+       loading_window.setWindowTitle("Loading disc")
+       loading_window.setWindowModality(Qt.WindowModal);
+       loading_window.show()
+       loading_window.canceled.connect(qApp.quit)
+       makemkv.title_load_complete.connect(loading_window.reset)
+
        logging.info("Starting application")
        makemkv_thread.start()
        mplayer_thread.start()