Files
pywebview/examples/simple_browser.py
2014-11-20 13:38:04 +02:00

21 lines
518 B
Python

import webview
import threading
"""
This example demonstrates creating a web view window and navigating to another web page after ten seconds
"""
def change_url():
import time
time.sleep(10)
webview.load_url("http://www.html5zombo.com/")
if __name__ == '__main__':
t = threading.Thread(target=change_url)
t.start()
# Create a non-resizable webview window with 800x600 dimensions
webview.create_window("Simple browser", "http://www.google.com", width=800, height=600, resizable=False)