Python: How can I make my tkinter app exit properly?
问题 I need to know how to do this on a mac because whenever I try quitting it, I have to force quit it. Is there a proper way when the user clicks the exit button that Tkinter will exit normally? 回答1: I figured out how. I just put a simple exit() command after the main loop. 来源: https://stackoverflow.com/questions/5427875/python-how-can-i-make-my-tkinter-app-exit-properly