mirror of
https://github.com/allankoechke/pywebview.git
synced 2026-12-02 09:37:30 +00:00
17 lines
329 B
Markdown
17 lines
329 B
Markdown
# Get current URL
|
|
|
|
Print current URL after page is loaded.
|
|
|
|
``` python
|
|
import webview
|
|
import threading
|
|
|
|
|
|
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)
|
|
``` |