how to hide tkinter window code example
Example 1: hide root window tkinter
root = tk.Tk()
# Hide it with .withdraw
root.withdraw()
# To reveal it again:
root.deiconify()
Example 2: 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)