diff options
author | emkael <emkael@tlen.pl> | 2019-05-25 03:16:21 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-05-25 03:16:21 +0200 |
commit | 9aef8ec85fa1b4b8db4274c33b99e5773f4f4242 (patch) | |
tree | d0af8a5704e28dabc2dc48043fcbedb73001d14c /jfr_playoff/gui/__init__.py | |
parent | dd7902ef7b46f598973cf85541d2e5f63ec2943d (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__.py | 16 |
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() |