Fix running on non-windows platforms

Also remove incorrect comment
This commit is contained in:
Kevin Cathcart
2018-01-01 11:50:35 -05:00
parent ce30913121
commit d36b6b1beb
2 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,10 @@ class BackgroundTaskProgress(BackgroundTask):
self.window['padx'] = 5
self.window['pady'] = 5
self.window.attributes("-toolwindow", 1)
try:
self.window.attributes("-toolwindow", 1)
except tk.TclError:
pass
self.window.wm_title(title)
self.label_var = tk.StringVar()