import webview
from time import sleep
"""
This example demonstrates how to load HTML in a web view window
"""
def load_html(window):
sleep(5)
window.load_html('
This is dynamically loaded HTML
')
if __name__ == '__main__':
window = webview.create_window('Load HTML Example', html='This is initial HTML
')
webview.start(load_html, window)