Forum Archive

Display the webviews current url in a textfield

Bjucha

Hello Im trying to display in a textfield the current url for the webview
So if Im clicking on a link (omz-software.com for example) I would like the textfield to display omz-software.com
I have tried

text_field.placeholder = web_view.load_url('')

But that does not work, also tried with Urlib.parse variations bur not been able to get It to work

Any ideas or clues for helping me would be great

brumm

Webbrowser.py search for

def webview_did_finish_load(self, webview):
...
Bjucha

@brumm thx. Looks like this can be a good way to fix it