mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 01:33:02 +00:00
19 lines
375 B
Python
19 lines
375 B
Python
import webview
|
|
import threading
|
|
|
|
"""
|
|
This example demonstrates how to toggle fullscreen mode programmatically.
|
|
"""
|
|
|
|
def toggle_fullscreen():
|
|
import time
|
|
time.sleep(5)
|
|
webview.toggle_fullscreen()
|
|
|
|
|
|
if __name__ == '__main__':
|
|
t = threading.Thread(target=toggle_fullscreen)
|
|
t.start()
|
|
|
|
webview.create_window("Full-screen window", "http://www.flowrl.com")
|