Minor restructuring and fallback error even even tkInter is not installed.
This commit is contained in:
parent
755c4519c6
commit
626385821a
@ -125,7 +125,11 @@ def panic(text):
|
|||||||
on the command line and reported using Tkinter.
|
on the command line and reported using Tkinter.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import Tkinter
|
try:
|
||||||
|
import Tkinter
|
||||||
|
except:
|
||||||
|
print text
|
||||||
|
sys.exit(-1)
|
||||||
|
|
||||||
print text
|
print text
|
||||||
|
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
""" Import externals """
|
||||||
|
import sys
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
@ -29,9 +31,7 @@ from Gui import About,Preference,Mainwindow
|
|||||||
from Scyther import Scyther,Misc
|
from Scyther import Scyther,Misc
|
||||||
|
|
||||||
#---------------------------------------------------------------------------
|
#---------------------------------------------------------------------------
|
||||||
|
# Try to get wxPython
|
||||||
""" Import externals """
|
|
||||||
import sys
|
|
||||||
try:
|
try:
|
||||||
import wx
|
import wx
|
||||||
except ImportError:
|
except ImportError:
|
||||||
@ -50,6 +50,8 @@ version number.
|
|||||||
Note that you can still use the Scyther binaries in the 'Scyther' directory.
|
Note that you can still use the Scyther binaries in the 'Scyther' directory.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------
|
||||||
|
|
||||||
import os
|
import os
|
||||||
from optparse import OptionParser, SUPPRESS_HELP
|
from optparse import OptionParser, SUPPRESS_HELP
|
||||||
from subprocess import *
|
from subprocess import *
|
||||||
|
Loading…
Reference in New Issue
Block a user