omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Display the webviews current url in a textfield

    Pythonista
    webview textfield
    2
    3
    2646
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Bjucha
      Bjucha last edited by 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

      1 Reply Last reply Reply Quote 0
      • brumm
        brumm last edited by

        Webbrowser.py search for

        def webview_did_finish_load(self, webview):
        ...
        
        Bjucha 1 Reply Last reply Reply Quote 0
        • Bjucha
          Bjucha @brumm last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors