Toggle full-screen | pywebview (v2.4)
Description: Build GUI for your Python program with JavaScript, HTML, and CSS

# # Toggle full-screen

Switch application window to a full-screen mode after five seconds.

    import webview
    import threading
    import time

    def toggle_fullscreen():
        # wait a few seconds before toggle fullscreen:
        time.sleep(5)

        webview.toggle_fullscreen()

    if __name__ == '__main__':
        t = threading.Thread(target=toggle_fullscreen)
        t.start()

        webview.create_window("Full-screen window", "https://pywebview.flowrl.com/hello")

Help us improve this page!