From 4097c15c794bf7c9f3a155173be4aff0b683a32f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 7 Mar 2009 05:04:32 +0900 Subject: [PATCH] fix splash screen dimensions on win32 --- ankiqt/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ankiqt/__init__.py b/ankiqt/__init__.py index 760b0ebf6..d1add6833 100644 --- a/ankiqt/__init__.py +++ b/ankiqt/__init__.py @@ -36,8 +36,11 @@ class SplashScreen(object): self.splash = QSplashScreen(self.pixmap) self.prog = QProgressBar(self.splash) self.prog.setMaximum(max) + x = 8 + if sys.platform.startswith("win32"): + x += 1 self.prog.setGeometry(self.splash.width()/10, 8*self.splash.height()/10, - 8*self.splash.width()/10, self.splash.height()/10) + x*self.splash.width()/10, self.splash.height()/10) self.splash.show() self.val = 1