xxxxxxxxxx
import tkinter as tk
# Create the main application window
root = tk.Tk()
# Maximize the window to full screen
root.attributes('-fullscreen', True)
# Exit full-screen mode when the Esc key is pressed
def exit_fullscreen(event):
root.attributes('-fullscreen', False)
root.bind('<Escape>', exit_fullscreen)
# Add content to the full-screen window
label = tk.Label(root, text="This is a full-screen window")
label.pack()
# Start the main loop
root.mainloop()