summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/__init__.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-05-25 03:16:21 +0200
committeremkael <emkael@tlen.pl>2019-05-25 03:16:21 +0200
commit9aef8ec85fa1b4b8db4274c33b99e5773f4f4242 (patch)
treed0af8a5704e28dabc2dc48043fcbedb73001d14c /jfr_playoff/gui/__init__.py
parentdd7902ef7b46f598973cf85541d2e5f63ec2943d (diff)
Basic GUI structure:
* main window with tab manager * page settings tab
Diffstat (limited to 'jfr_playoff/gui/__init__.py')
-rw-r--r--jfr_playoff/gui/__init__.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/jfr_playoff/gui/__init__.py b/jfr_playoff/gui/__init__.py
new file mode 100644
index 0000000..d9c455d
--- /dev/null
+++ b/jfr_playoff/gui/__init__.py
@@ -0,0 +1,16 @@
+import tkinter as tk
+from tkinter import ttk
+
+from .tabs import *
+
+class PlayoffGUI(object):
+ def __init__(self):
+ self.root = tk.Tk()
+
+ def run(self):
+ self.notebook = ttk.Notebook(self.root)
+ self.notebook.pack(fill=tk.BOTH, expand=True)
+ for tab in tabs.__all__:
+ tabObj = globals()[tab](self.notebook)
+ self.notebook.add(tabObj, text=tabObj.title)
+ self.root.mainloop()