mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
19 lines
430 B
Python
19 lines
430 B
Python
import webview
|
|
import threading
|
|
|
|
"""
|
|
This example demonstrates how to load HTML in a web view window
|
|
"""
|
|
|
|
def change_url():
|
|
webview.load_html("<h1>This is dynamically loaded HTML</h1>")
|
|
|
|
|
|
if __name__ == '__main__':
|
|
t = threading.Thread(target=change_url)
|
|
t.start()
|
|
|
|
# Create a non-resizable webview window with 800x600 dimensions
|
|
webview.create_window("Simple browser", width=800, height=600, resizable=True)
|
|
|