Commit 0d3c6a41a66e929c427ef1ddac906e6acf4bc25f
1 parent
fa05cea1
Exists in
master
and in
5 other branches
FIX: Fixed splash screen in Mac OS, thak's Bruno Lara Bottazzini
Showing
1 changed file
with
15 additions
and
0 deletions
Show diff stats
invesalius/invesalius.py
@@ -25,8 +25,23 @@ import os | @@ -25,8 +25,23 @@ import os | ||
25 | import sys | 25 | import sys |
26 | import shutil | 26 | import shutil |
27 | 27 | ||
28 | +if sys.platform == 'win32': | ||
29 | + import _winreg | ||
30 | +else: | ||
31 | + if sys.platform != 'darwin': | ||
32 | + import wxversion | ||
33 | + wxversion.ensureMinimal('2.8-unicode', optionsRequired=True) | ||
34 | + wxversion.select('2.8-unicode', optionsRequired=True) | ||
35 | + | ||
28 | import wx | 36 | import wx |
29 | import wx.lib.pubsub as ps | 37 | import wx.lib.pubsub as ps |
38 | +import wx.lib.agw.advancedsplash as agw | ||
39 | + | ||
40 | +if sys.platform == 'linux2': | ||
41 | + _SplashScreen = agw.AdvancedSplash | ||
42 | +else: | ||
43 | + if sys.platform != 'darwin': | ||
44 | + _SplashScreen = wx.SplashScreen | ||
30 | 45 | ||
31 | import gui.language_dialog as lang_dlg | 46 | import gui.language_dialog as lang_dlg |
32 | import i18n | 47 | import i18n |