From 44412c72e4b97c0ae094e91eb229988a54470b4a Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 26 Feb 2009 03:16:18 +0900 Subject: [PATCH] make sure splash is shown on win32, use finish() instead of hide --- ankiqt/__init__.py | 1 + ankiqt/ui/main.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index 3e3fbc3f1..a567f8d42 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -60,6 +60,7 @@ def run(): pixmap = QPixmap(":/icons/anki-logo.png") ui.splash = QSplashScreen(pixmap) ui.splash.show() + app.processEvents() # setup paths for forms, icons diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 35340f507..7d2e39612 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -76,7 +76,7 @@ class AnkiQt(QMainWindow): except: ui.utils.showWarning(_("Broken plugin:\n\n%s") % traceback.format_exc()) - ui.splash.hide() + ui.splash.finish(self) self.show() def setupMainWindow(self):