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.


    Open .gif or image in Safari?

    Pythonista
    4
    22
    15653
    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.
    • cvp
      cvp last edited by

      And you have also webview

      import ui
      import os
      class MyView(ui.View):
      	def __init__(self,w,h):
      		self.width = w
      		self.height = h
      
      		wv = ui.WebView(frame=(0,0,w,h))
      		doc_path = os.path.expanduser('~/Documents')
      		file_path = os.path.join(doc_path,'IMG_5126.JPG') # your file name of course
      		wv.load_url('file://'+file_path)
      		self.add_subview(wv)
      
      #w, h = ui.get_screen_size()
      w, h = (540,620)
      back = MyView(w, h)
      back.present('sheet')
      
      1 Reply Last reply Reply Quote 2
      • donnieh
        donnieh last edited by

        Ok! That's sound legit. Thank you!

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