summaryrefslogtreecommitdiff
path: root/jfr_playoff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2022-03-13 12:34:48 +0100
committeremkael <emkael@tlen.pl>2022-03-13 12:34:48 +0100
commit400e1dd81c501775aa275a79332486badf82e380 (patch)
tree3ff942772b6167278c28ee5fa85d50f33acd08b9 /jfr_playoff
parent2faffd57a5fa084d974678236e91c0bede029cba (diff)
Icons on Linux were problematic, fallback to ignore
Diffstat (limited to 'jfr_playoff')
-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()