blob: 79a1fadd7dc1b32c1a8298c8c482dd7003ab7609 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import tkinter as tk
from tkinter import ttk
from .tabs import *
class PlayoffGUI(tk.Tk):
def __init__(self):
tk.Tk.__init__(self)
self.tabs = {}
def run(self):
self.notebook = ttk.Notebook(self)
self.notebook.pack(fill=tk.BOTH, expand=True)
for tab in tabs.__all__:
self.tabs[tab] = globals()[tab](self.notebook)
self.notebook.add(self.tabs[tab], text=self.tabs[tab].title)
self.mainloop()
|