diff --git a/gui/Scyther/Misc.py b/gui/Scyther/Misc.py index 23bf2c2..74d02c7 100644 --- a/gui/Scyther/Misc.py +++ b/gui/Scyther/Misc.py @@ -125,7 +125,11 @@ def panic(text): on the command line and reported using Tkinter. """ - import Tkinter + try: + import Tkinter + except: + print text + sys.exit(-1) print text diff --git a/gui/scyther-gui.py b/gui/scyther-gui.py index 9f87346..fade959 100755 --- a/gui/scyther-gui.py +++ b/gui/scyther-gui.py @@ -21,6 +21,8 @@ #--------------------------------------------------------------------------- +""" Import externals """ +import sys #--------------------------------------------------------------------------- @@ -29,9 +31,7 @@ from Gui import About,Preference,Mainwindow from Scyther import Scyther,Misc #--------------------------------------------------------------------------- - -""" Import externals """ -import sys +# Try to get wxPython try: import wx except ImportError: @@ -50,6 +50,8 @@ version number. Note that you can still use the Scyther binaries in the 'Scyther' directory. """) +#--------------------------------------------------------------------------- + import os from optparse import OptionParser, SUPPRESS_HELP from subprocess import *