fix splash screen dimensions on win32

This commit is contained in:
Damien Elmes 2009-03-07 05:04:32 +09:00
parent 4607d42c5f
commit 4097c15c79

View file

@ -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