MCPcopy Create free account
hub / github.com/LCBOWER33/StegoScan / toggle_full_screen

Function toggle_full_screen

StegoScan.py:1383–1386  ·  view source on GitHub ↗

Toggle between full screen and windowed mode.

(event=None)

Source from the content-addressed store, hash-verified

1381
1382 # Function to toggle full screen on Escape key press
1383 def toggle_full_screen(event=None):
1384 """ Toggle between full screen and windowed mode. """
1385 current_state = root.attributes("-fullscreen")
1386 root.attributes("-fullscreen", not current_state)
1387
1388 # Bind Escape key to exit full-screen mode
1389 root.bind("<Escape>", toggle_full_screen)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected