configtool: fix wx test
This commit is contained in:
parent
0d308c8cfa
commit
8fc867ae72
|
|
@ -3,10 +3,18 @@ import sys
|
|||
import time
|
||||
try:
|
||||
import wx
|
||||
if wx.__version__[0] < 4:
|
||||
if int(wx.__version__[0]) < 4:
|
||||
print("Configtool needs wxPython 4.x. Please check https://wxpython.org/pages/downloads/.")
|
||||
time.sleep(10)
|
||||
sys.exit(-1)
|
||||
except:
|
||||
print(
|
||||
"ImportError: No module named wx\n\n"
|
||||
"wxPython is not installed. This program requires wxPython to run.\n"
|
||||
"See your package manager and/or https://wxpython.org/pages/downloads/."
|
||||
)
|
||||
time.sleep(10)
|
||||
sys.exit(-1)
|
||||
except:
|
||||
print("ImportError: No module named wx\n\n"
|
||||
"wxPython is not installed. This program requires wxPython to run.\n"
|
||||
|
|
|
|||
Loading…
Reference in New Issue