Files
pywebview/docs/examples/html_load.md
2019-04-29 09:46:16 +03:00

18 lines
367 B
Markdown

# HTML load
Display content by loading HTML on the fly.
``` python
import webview
import threading
def load_html(window):
time.sleep(5)
window.load_html('<h1>This is dynamically loaded HTML</h1>')
if __name__ == '__main__':
window = webview.create_window('Load HTML Example', '<h1>This is initial HTML</h1>')
webview.start(load_html, window)
```