no more Tkinter is not necessary

This commit is contained in:
mdipierro
2013-11-24 20:33:31 -06:00
parent ff2f11a706
commit a7defed64c
2 changed files with 6 additions and 8 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.7.4-stable+timestamp.2013.11.24.09.43.16
Version 2.7.4-stable+timestamp.2013.11.24.20.32.35
+5 -7
View File
@@ -1153,22 +1153,20 @@ def start(cron=True):
root = None
if not options.nogui:
if not options.nogui and options.password=='<ask>':
try:
import Tkinter
havetk = True
try:
root = Tkinter.Tk()
except:
pass
except (ImportError, OSError):
logger.warn(
'GUI not available because Tk library is not installed')
havetk = False
options.nogui = True
if options.password == '<ask>' and havetk or options.taskbar and havetk:
try:
root = Tkinter.Tk()
except:
pass
if root:
root.focus_force()