Tkinter app disappears when exiting full screen
If you want to set the fullscreen attribute to True, it is as easy as:
root = Tk()root.attributes('-fullscreen', True)
However, it doesn't show the title bar. If you want to keep it visible, you can resize the Tk element with the geometry() method:
root = Tk()w, h = root.winfo_screenwidth(), root.winfo_screenheight()root.geometry("%dx%d+0+0" % (w, h))