From 756ab8495016d180ec4f270bddccc4bc01913841 Mon Sep 17 00:00:00 2001 From: emkael Date: Sat, 27 Jul 2019 23:24:28 +0200 Subject: Frame title texts and icons --- jfr_playoff/gui/__init__.py | 3 +++ jfr_playoff/gui/icons.py | 3 ++- jfr_playoff/gui/logframe.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/jfr_playoff/gui/__init__.py b/jfr_playoff/gui/__init__.py index 1bee144..086b3ab 100644 --- a/jfr_playoff/gui/__init__.py +++ b/jfr_playoff/gui/__init__.py @@ -25,8 +25,11 @@ 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')) self.tabs = {} self.logWindow = LogWindow(self) + self.logWindow.title('Dziennik komunikatów') + self.logWindow.iconbitmap(GuiImage.get_path('icons', 'playoff', 'ico')) self._buildMenu() self.newFileIndex = 0 self._title = tk.StringVar() diff --git a/jfr_playoff/gui/icons.py b/jfr_playoff/gui/icons.py index 12350ec..f700bb1 100644 --- a/jfr_playoff/gui/icons.py +++ b/jfr_playoff/gui/icons.py @@ -14,7 +14,8 @@ class GuiImage(object): @staticmethod def get_path(imageType, code, fileType='gif'): - return os.path.join(GuiImage.__get_base_path(), imageType, '%s.%s' % (code, fileType)) + return os.path.join( + GuiImage.__get_base_path(), imageType, '%s.%s' % (code, fileType)) @staticmethod def __get_image(imageType, cache, code, fileType='gif'): diff --git a/jfr_playoff/gui/logframe.py b/jfr_playoff/gui/logframe.py index f4fbd2f..1711d52 100644 --- a/jfr_playoff/gui/logframe.py +++ b/jfr_playoff/gui/logframe.py @@ -14,9 +14,9 @@ class LogWindow(tk.Toplevel): self.withdraw() self.protocol('WM_DELETE_WINDOW', self.withdraw) self.renderContents() - self._registerLogging() self._records = [] self._counter = -1 + self._registerLogging() def renderContents(self): columns = [ -- cgit v1.2.3