From a4959ff0dd4b0127a6e647cbabfbd05fccaaf05b Mon Sep 17 00:00:00 2001 From: Nico Tonnhofer Date: Wed, 17 Apr 2019 21:40:54 +0200 Subject: [PATCH] configtool: add check for wxPython 4 --- configtool/gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configtool/gui.py b/configtool/gui.py index 240be01..4a17bec 100644 --- a/configtool/gui.py +++ b/configtool/gui.py @@ -3,6 +3,10 @@ import sys import time try: 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: print("ImportError: No module named wx\n\n" "wxPython is not installed. This program requires wxPython to run.\n"