How to close one of the windows in Tkinter - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: GUI (https://python-forum.io/forum-10.html) +--- Thread: How to close one of the windows in Tkinter (/thread-22385.html) |
How to close one of the windows in Tkinter - scratchmyhead - Nov-11-2019 Hey guys. I'm sure it's simple but what is the command to close a current window in Tkinter? I still want the root to be open but I want another window to close when I click a button. Thanks. scratchmyhead RE: How to close one of the windows in Tkinter - Larz60+ - Nov-11-2019 to remove, use windowname.destroy() - it's gone or windowname.withdraw() - removed from screen, but not destroyed windowname.iconify() - lowered and iconified (click to restore) there is also lift and lower, which places a window on top of or behind another window, and if they are the same size, and at same location, can be used to cycle several windows. RE: How to close one of the windows in Tkinter - Jonathan998 - Nov-24-2019 (Nov-11-2019, 02:15 AM)Larz60+ Wrote: to remove, use windowname.destroy() - it's gone Thanks. It helped me a lot. what county am i in RE: How to close one of the windows in Tkinter - pashaliski - Dec-21-2019 This is very helpful, thank you a lot. what county am i in |