From 34fd418264d2412a7ff96ba0a0ff74a0f9ca651a Mon Sep 17 00:00:00 2001 From: Cas Cremers Date: Wed, 28 Oct 2020 08:42:09 +0100 Subject: [PATCH] Updated wxPython check, enforcing at least wxPython 4.0 now. --- gui/scyther-gui.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/gui/scyther-gui.py b/gui/scyther-gui.py index 6616ab2..d595874 100755 --- a/gui/scyther-gui.py +++ b/gui/scyther-gui.py @@ -104,7 +104,13 @@ try: WXPYTHON4 = True WXPYTHONINFREQ = wx.adv except ImportError: - pass + Misc.panic(""" +ERROR: + +Found wxPython libraries, but they seem to be too old (pre-4.0 wxPython). This means you cannot use the graphical user interface. To fix this, please ensure that you have at least wxPython 4.0 installed such that it is loaded by the wx import of python3. + +Note that you can currently still use the Scyther binaries in the 'Scyther' directory. +""") """ import externals """ import sys