from tkinter import * # creates the window root = Tk() root.mainloop() # vanish out the root window (don't go background) root.destroy()