Closed as not planned
Description
there is a problem with tk detection for when you close a window.
if you write the following line of code:
root.protocol("WM_DELETE_WINDOW", function)
Expectation:
The function runs when you try to close the window.
Output:
_init__.py", line 2226, in wm_protocol return self.tk.call( _tkinter.TclError: can't invoke "wm" command: application has been destroyed
This is the problem.