【发布时间】:2012-11-30 02:52:15
【问题描述】:
我正在尝试使用 self.win.destroy 关闭 TKInter 窗口。
bind将事件发送到按钮时抛出以下错误:
...
Can't invoke "bind" command: application has been destroyed
During handling the above exception, another exception occured:
...
Can't invoke "destroy" command: application has been destroyed
如何将“关闭窗口”命令绑定到按钮?
【问题讨论】:
-
如果您也发布相关代码会有所帮助。
标签: python user-interface tkinter destroy