如何在Tkinter中断开主回路?

如何在Tkinter中断开主回路?,tkinter,using,Tkinter,Using,在我的项目中,我需要使用Tkinter和Dialog 所以我做了编码,但我不能中断Tkinter.main循环 如何中断Tkinter.Mainloop?要停止运行Mainloop,必须销毁根窗口。请阅读并向我们提供.your_实例\u变量\u name.destroy。

在我的项目中,我需要使用Tkinter和Dialog 所以我做了编码,但我不能中断Tkinter.main循环
如何中断Tkinter.Mainloop?

要停止运行Mainloop,必须销毁根窗口。

请阅读并向我们提供.your_实例\u变量\u name.destroy。