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.

Was it helpful?

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
scroll top