Files
pywebview/examples/toggle_fullscreen.py
Roman Sirokov 99e3974c92 New API
Cocoa implementation
Revamped tests and examples
2019-04-28 17:07:08 +03:00

20 lines
411 B
Python

import webview
import threading
import time
"""
This example demonstrates how to toggle fullscreen mode programmatically.
"""
def toggle_fullscreen(window):
# wait a few seconds before toggle fullscreen:
time.sleep(5)
window.toggle_fullscreen()
if __name__ == '__main__':
window = webview.create_window('Full-screen window', 'https://pywebview.flowrl.com/hello')
webview.start(window)