mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
fix splash screen dimensions on win32
This commit is contained in:
parent
4607d42c5f
commit
4097c15c79
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue