mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-11-30 17:18:35 +00:00
15 lines
331 B
Python
15 lines
331 B
Python
import webview
|
|
|
|
"""
|
|
This example demonstrates how to get the current url loaded in the webview.
|
|
"""
|
|
|
|
|
|
def get_current_url(window):
|
|
print(window.get_current_url())
|
|
|
|
|
|
if __name__ == '__main__':
|
|
window = webview.create_window('Get current URL', 'https://pywebview.flowrl.com/hello')
|
|
webview.start(get_current_url, window)
|