Fix wxPython SpashScreen error at startup.
This commit is contained in:
parent
bf4bd3e07b
commit
92aa826bf3
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user