Toggle between full screen and windowed mode.
(event=None)
| 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) |
nothing calls this directly
no outgoing calls
no test coverage detected