2
我目前正在嘗試創建兩個窗口與tkinter程序,但它似乎並沒有工作。直到最近我才把我的遊戲轉移到tkinter,這是第一次使用tkinter。由於我不知道爲什麼這不起作用。Python tkinter創建兩個窗口
這是我的第一個窗口,它的做工精細
class Application(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.create_widgets()
self.crafting_listbox
我的第二個窗口,但不工作
class Application_2(tk.Frame):
def __init__(self, master=None):
super().__init__(master)
self.pack()
self.crafting_listbox()
然後整理位
root = tk.Tk()
app = Application(master=root)
app.mainloop()
我不確定爲什麼這是行不通的,最近出了什麼問題?
感謝幫助! –