Python Tkinter :destory错误

报错信息:

_tkinter.TclError: can't invoke "destroy" command: application has been destroyed

我在做一个tk程序,有三个窗口,在第一个窗口有一个按钮打开第二个窗口,第二个窗口又有一个窗口打开第三个窗口,而第三个窗口的按钮用于关闭第二个窗口。用的是

root2.destory()

代码,但是出现了以下的错误:

_tkinter.TclError: can't invoke "destroy" command: application has been destroyed

将root2作为参数传入root3里面,然后btn3 = Button(root3, text ="Button 1", command = root2.destroy)