hide root window tkinter
root = tk.Tk() # Hide it with .withdraw root.withdraw() # To reveal it again: root.deiconify()
Source: stackoverflow.com
how to hide a widget in tkinter python
# Creates label widget = Label(window, width=5, height=6) widget.pack() # Hide label widget.pack_forget()
tkinter hide widget
def grid_hide(widget): widget._grid_info = widget.grid_info() widget.grid_remove() def grid_show(widget): widget.grid(**widget._grid_info)
How to hide tkinter window
root.withdraw()