root = tk.Tk() # Hide it with .withdraw root.withdraw() # To reveal it again: root.deiconify()
Here is what the above code is Doing:
1. It’s creating a Tkinter object called root.
2. It’s hiding the root window.
3. It’s revealing the root window.