import tkinter as tk
root = tk.Tk()
root.attributes('-fullscreen', True)
# this is very important
def close_fullscreen():
root.attributes('-fullscreen', False)
# add bt to close fullscreen mode this is very important
close_bt = tk.Button(root, text='Close full screen mode', command=close_fullscreen)
close_bt.pack(fill=tk.BOTH)
root.mainloop()
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter