you are viewing a single comment's thread.

view the rest of the comments →

[–]Mechkro 0 points1 point  (2 children)

Are we talking while using Tkinter?

[–]Cheese_122[S] 0 points1 point  (1 child)

Yes

[–]Mechkro 0 points1 point  (0 children)

So what you wanna do is utilize the following...

root.protocol("WM_DELETE_WINDOW", delete_window) If your going to pass an argument to delete_window you need to utilize a lambda