Fix wxPython SpashScreen error at startup.

This commit is contained in:
Thomas Fleming 2018-11-09 20:58:35 +00:00 committed by Cas Cremers
parent bf4bd3e07b
commit 92aa826bf3

View File

@ -22,7 +22,7 @@
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
# Try to get wxPython # Try to get wxPython
try: try:
import wx import wx.adv
except ImportError,err: except ImportError,err:
from Scyther import Misc from Scyther import Misc
@ -139,7 +139,7 @@ def parseArgs():
#--------------------------------------------------------------------------- #---------------------------------------------------------------------------
class MySplashScreen(wx.SplashScreen): class MySplashScreen(wx.adv.SplashScreen):
def __init__(self,basedir): def __init__(self,basedir):
path = os.path.join(basedir,"Images") path = os.path.join(basedir,"Images")
image = os.path.join(path,"scyther-splash.png") image = os.path.join(path,"scyther-splash.png")