summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui/__init__.py')
-rw-r--r--jfr_playoff/gui/__init__.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/jfr_playoff/gui/__init__.py b/jfr_playoff/gui/__init__.py
index af53c25..637e35c 100644
--- a/jfr_playoff/gui/__init__.py
+++ b/jfr_playoff/gui/__init__.py
@@ -26,11 +26,17 @@ class PlayoffGUI(tk.Tk):
ttk.Style().configure('TLabelframe.Label', foreground='black')
ttk.Style().configure('TLabelframe', padding=5)
self.geometry('920x640')
- self.iconbitmap(GuiImage.get_path('icons', 'playoff', 'ico'))
+ try:
+ self.iconbitmap(GuiImage.get_path('icons', 'playoff', 'ico'))
+ except tk.TclError:
+ pass # sometimes it fails on Linux, just ignore
self.tabs = {}
self.logWindow = LogWindow(self)
self.logWindow.title('Dziennik komunikatów')
- self.logWindow.iconbitmap(GuiImage.get_path('icons', 'playoff', 'ico'))
+ try:
+ self.logWindow.iconbitmap(GuiImage.get_path('icons', 'playoff', 'ico'))
+ except tk.TclError:
+ pass # sometimes it fails on Linux, just ignore
self._buildMenu()
self.newFileIndex = 0
self._title = tk.StringVar()