我知道有很多通过调用root.destroy()函数来正确关闭TkinterGUI的。它们与我的设置一起工作,除非我确定包含一个tkinter.intvar类型的变量会导致gui进程即使在我关闭窗口之后仍然存在。You can use regular Tkinter if needed
root.wm_title("Killm
不幸的是,当用户选择文件时,它不会立即消失,并且停留超过5分钟。在执行更多python代码之前,如何在做出选择后立即使窗口消失?import Tkinter as Tkfrom tkFileDialog import askopenfilenameroot.withdraw() # we don't want a full GUI, so keep the root window fro