mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-06 01:28:24 +00:00
18 lines
322 B
Markdown
18 lines
322 B
Markdown
# HTML load
|
|
|
|
Display content by loading HTML on the fly.
|
|
|
|
``` python
|
|
import webview
|
|
import threading
|
|
|
|
def load_html():
|
|
webview.load_html('<h1>This is dynamically loaded HTML</h1>')
|
|
|
|
|
|
if __name__ == '__main__':
|
|
t = threading.Thread(target=load_html)
|
|
t.start()
|
|
|
|
webview.create_window('Load HTML Example')
|
|
``` |