summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui
diff options
context:
space:
mode:
Diffstat (limited to 'jfr_playoff/gui')
-rw-r--r--jfr_playoff/gui/__init__.py3
-rw-r--r--jfr_playoff/gui/icons.py3
-rw-r--r--jfr_playoff/gui/logframe.py2
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 = [