iconify tkinter code example
Example: how does tkinter iconify() function work in python
iconify() Turns the window into an icon (without destroying it).
To redraw the window, use deiconify.
Under Windows, the window will show up in the taskbar.
When the window has been iconified, the state method returns “iconic”.
withdraw() Removes the window from the screen (without destroying it).
To redraw the window, use deiconify.
When the window has been withdrawn, the state method returns “withdrawn”.