configtool: add check for wxPython 4
This commit is contained in:
parent
727d5dee66
commit
a4959ff0dd
|
|
@ -3,6 +3,10 @@ import sys
|
||||||
import time
|
import time
|
||||||
try:
|
try:
|
||||||
import wx
|
import wx
|
||||||
|
if wx.__version__[0] < 4:
|
||||||
|
print("Configtool needs wxPython 4.x. Please check https://wxpython.org/pages/downloads/.")
|
||||||
|
time.sleep(10)
|
||||||
|
sys.exit(-1)
|
||||||
except:
|
except:
|
||||||
print("ImportError: No module named wx\n\n"
|
print("ImportError: No module named wx\n\n"
|
||||||
"wxPython is not installed. This program requires wxPython to run.\n"
|
"wxPython is not installed. This program requires wxPython to run.\n"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue