diff options
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() |