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.


    Disable webview

    Pythonista
    2
    3
    1256
    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.
    • donnieh
      donnieh last edited by

      How do you disable a webview so it doesn't respond to touches?

      (A webview object, not the webview pop up sheet)

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

        You could simply add a transparent view to it that blocks any touches:

        # webview = ...
        shield_view = ui.View(frame=webview.bounds, flex='WH')
        webview.add_subview(shield_view)
        
        1 Reply Last reply Reply Quote 0
        • donnieh
          donnieh last edited by

          Thank you! I understand.

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