"""
Loading new HTML after the window is created
"""
from time import sleep
import webview
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)