You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem is in
webview.windows[0].get_current_url()
it does not execute. It does not raise exception, it is just stuck there and nothing happens, method 'on_loaded' does not continue. Actually this also happens when I try to call:
webview.windows[0].evaluate_js('... some my javascript....')
I tried to use 'window' instead of webview.windows[0] but result is the same
The text was updated successfully, but these errors were encountered:
There were at least two issues.
a) callbacks were executed before the loaded event was set
b) callbacks were executed on the same thread, which resulted in hanging at least on macOS.
I have opened a PR. There might be side-effects of the logic change, so testing on different platforms and with different events is much appreciated.
Specification
Description
My code is:
def on_loaded():
print("loaded....")
print(webview.windows[0].get_current_url())
window = webview.create_window('MyApp', "http://127.0.0.1:8000/")
window.loaded += on_loaded
webview.start()
Problem is in
webview.windows[0].get_current_url()
it does not execute. It does not raise exception, it is just stuck there and nothing happens, method 'on_loaded' does not continue. Actually this also happens when I try to call:
webview.windows[0].evaluate_js('... some my javascript....')
I tried to use 'window' instead of webview.windows[0] but result is the same
The text was updated successfully, but these errors were encountered: