def __init__(self, window):
self.container = window
self.buttons = tk.Frame(window)
self.QUIT = tk.Button(self.buttons, text='QUIT', fg='red',
command=self.writequit)
self.long_rest = tk.Button(self.buttons, text='Long rest',
command=lambda: self.rest('long'))
self.short_rest = tk.Button(self.buttons, text='Short rest',
command=lambda: self.rest('short'))
self.next_turn = tk.Button(self.buttons, text='Next turn',
command=lambda: self.rest('turn'))
self.core = ttk.Notebook(window)
self.core.bind("<<NotebookTabChanged>>", self.tab_update)
######
self.frontpage = tk.Frame(self.core)
self.featurespage = tk.Frame(self.core)
self.attackpage = tk.Frame(self.core)
self.inventorypage = tk.Frame(self.core)
self.spellspage = tk.Frame(self.core)
# self.draw_static()
self.startup_begin()
评论列表
文章目录