Files
pywebview/examples/get_current_url.py
Asiel Díaz Benítez b9cc4d376e Examples clean up (#205)
2018-03-25 23:39:43 +03:00

18 lines
342 B
Python

import webview
import threading
"""
This example demonstrates how to get the current url loaded in the webview.
"""
def get_current_url():
print(webview.get_current_url())
if __name__ == '__main__':
t = threading.Thread(target=get_current_url)
t.start()
webview.create_window("Get current URL", "http://www.flowrl.com")