diff options
author | emkael <emkael@tlen.pl> | 2019-07-27 23:24:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-07-27 23:24:28 +0200 |
commit | 756ab8495016d180ec4f270bddccc4bc01913841 (patch) | |
tree | e28675372b07638082f8ae57c824c85dff471a77 | |
parent | 9d2960d1c42e22d74608cb6944f561816f4d58d5 (diff) |
Frame title texts and icons
-rw-r--r-- | jfr_playoff/gui/__init__.py | 3 | ||||
-rw-r--r-- | jfr_playoff/gui/icons.py | 3 | ||||
-rw-r--r-- | 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 = [ |