Refreshing the web browser #1695
Unanswered
White-Rabbit-Scientific
asked this question in
Q&A
Replies: 2 comments 1 reply
|
As it says in the documentation, "refresh" in these methods refers to Toga's own layout and appearance. We should probably have a separate method to do a refresh of the web page itself, because requiring the user to reassign the url to the same value isn't intuitive. |
0 replies
|
Found this while searching for a solution. the page itself does not respond to ctrl+R for a fresh _ i was thinking i may be able to capture that shortcut and map it to toga. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I set up a python webserver on http://localhost:8080 which is serving content.
I used the Toga WebView widget and pointed it at localhost.
This works beautifully on Linux (have not tested on other platforms yet).
I cannot seem to get the browser to refresh using either refresh_sublayouts() or refresh(), but the third option shown below did work.
Code snippet:
Perhaps the refresh() options are not implemented on Linux?
All reactions