0

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?

enter image description here

0

1 Answer 1

2
root = Tk.tk()
root.protocol('WM_DELETE_WINDOW', callback)

I believe

Sign up to request clarification or add additional context in comments.

1 Comment

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.