summaryrefslogtreecommitdiff
path: root/jfr_playoff/gui/__init__.py
blob: d9c455d0408295bfb73982d5a8d823d906bde46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()