Upgrading further parts to wxPython4.
This commit is contained in:
parent
38a0fba212
commit
1e46eb3751
@ -185,7 +185,7 @@ class VerificationWindow(wx.Dialog):
|
|||||||
sizer.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
|
sizer.Add(label, 0, wx.ALIGN_CENTRE|wx.ALL, 5)
|
||||||
|
|
||||||
line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
|
line = wx.StaticLine(self, -1, size=(20,-1), style=wx.LI_HORIZONTAL)
|
||||||
sizer.Add(line, 0, wx.GROW|wx.ALIGN_CENTER_VERTICAL|wx.RIGHT|wx.TOP, 5)
|
sizer.Add(line, 0, wx.GROW|wx.RIGHT|wx.TOP, 5)
|
||||||
|
|
||||||
btnsizer = wx.StdDialogButtonSizer()
|
btnsizer = wx.StdDialogButtonSizer()
|
||||||
|
|
||||||
|
@ -94,6 +94,19 @@ The exact error was:
|
|||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
global WXPYTHON4
|
||||||
|
global WXPYTHONINFREQ
|
||||||
|
WXPYTHON4 = False
|
||||||
|
WXPYTHONINFREQ = wx
|
||||||
|
|
||||||
|
try:
|
||||||
|
import wx.adv
|
||||||
|
|
||||||
|
WXPYTHON4 = True
|
||||||
|
WXPYTHONINFREQ = wx.adv
|
||||||
|
except ImportError:
|
||||||
|
pass
|
||||||
|
|
||||||
""" import externals """
|
""" import externals """
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
@ -139,7 +152,7 @@ def parseArgs():
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
class MySplashScreen(wx.adv.SplashScreen):
|
class MySplashScreen(WXPYTHONINFREQ.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