What is the name of the event when the user clicks the X button at the upper right corner of the window? How will I override that function?
1 Answer
root = Tk.tk()
root.protocol('WM_DELETE_WINDOW', callback)
I believe
1 Comment
sepehr
Thank you for the code snippet, which might provide some limited, immediate help. A proper explanation would greatly improve its long-term value by describing why this is a good solution to the problem, and would make it more useful to future readers with other similar questions. Please edit your answer to add some explanation, including the assumptions you've made.
