mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
445 B
445 B
Change URL
Change URL ten seconds after the first URL is loaded.
import webview
import threading
import time
def change_url(window):
# wait a few seconds before changing url:
time.sleep(10)
# change url:
window.load_url('https://pywebview.flowrl.com/hello')
if __name__ == '__main__':
window = webview.create_window('URL Change Example', 'http://www.google.com')
webview.start(change_url, window)