What is the Tk command which does the same as clicking on the x button of a window?
-
28-10-2019 - |
Question
There are command like wm minimize *window*
and wm maximize *window*
which minimize and maximize the window respectively, but there is nothing like wm exit *window*
.
I need a Tk command which does EXACTLY the same as clicking on the x button, particularly emits the WM_DELETE_WINDOW
signal. So the destroy *window*
command doesn't fit the needs.
Solution
There isn't such a command. You will have to call your function directly and then destroy the window.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow