Files
pywebview/examples/get_current_url.py
2018-09-02 01:17:24 +03:00

18 lines
348 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://pywebview.flowrl.com")