在用户按下Login按钮后,我尝试用不同的GUI打开一个全新的文件,但当用户单击它时,我似乎无法销毁主要的Tk窗口。def __init__(self, master=None): #This is how I initialized the TK window m_login = tkinter.Button(text="Login",bg="#1e1e1e&
from tkinter import *class check: self.root=root
self.b1只有在使用破坏方法时才会得到_tkinter.TclError: bad window path name ".!button"错误。但是我想删除前一个按钮时,我应该做另一个按钮appears.What吗?