omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Raymond
    3. Posts

    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.


    • Profile
    • Following 2
    • Followers 1
    • Topics 22
    • Posts 39
    • Best 1
    • Controversial 0
    • Groups 0

    Posts made by Raymond

    • RE: How to open a native safari window inside the pythonista app ?

      @bellaciao I did clearly say in my question that I don’t want to use the built-in ui.WebView because the lack of support of many web technologies that my URL did use.

      Also @cvp did solve me issue. But still thank you for trying

      posted in Pythonista
      Raymond
      Raymond
    • RE: How to open a native safari window inside the pythonista app ?

      @cvp Thank you !!!!! I really cant thank you enough!!!!!

      posted in Pythonista
      Raymond
      Raymond
    • How to open a native safari window inside the pythonista app ?

      I have a URL that I want to open in pythonista.
      But the problem is that this URL is hosted with localhost, and its have some Technologies that the old pythonista browser cant show the page cause of it. Also I dont want to open the URL in a new safari app.

      I want it to open the URL in a native safari window but still in the pythonista app. (Its on iPhone so no stage manage or spiltview)

      posted in Pythonista
      Raymond
      Raymond
    • pythonista flixy question.

      I saw the flixy library post from @SKBarbon .
      It’s amazing, i did convert pythonista script from into macOS app.
      But can I customise the icon ?
      Also will flixy-desktop support WebView in the future?

      posted in Pythonista
      Raymond
      Raymond
    • RE: If the cursor is hover a view.

      @cvp No it works!! Thank you very much !!

      posted in Pythonista
      Raymond
      Raymond
    • RE: If the cursor is hover a view.

      @cvp i am using pythonista beta, the new one.

      The code:

      import ui
      from objc_util import *
      
      UIHoverGestureRecognizer = ObjCClass('UIHoverGestureRecognizer')
      
      class MyView (ui.View):
      	@on_main_thread
      	def __init__(self, *args, **kwargs):
      		ui.View.__init__(self, *args, **kwargs)
      		self.background_color = 'lightgray'
      		
      		self.v = ui.View()
      		self.v.frame = (10,10,100,100)
      		self.v.background_color = 'white'
      		self.add_subview(self.v) 
      		
      		handler = UIGestureRecognizerDelegate(UIHoverGestureRecognizer, self.v, self.hover)
      		
      	def hover(self, data):
      		if data.state == 1: # began
      			data.view.background_color = 'red'
      		elif data.state == 2: # changed
      			pass
      		elif data.state == 3: # ended
      			data.view.background_color = 'white'
      		#print(data)
      
      
      
      v = MyView()
      

      There is this error with your code:

      Exception ignored on calling ctypes callback function: <function OMMainThreadDispatcher_invoke_imp at 0x1152d0160>
      Traceback (most recent call last):
        File "/var/containers/Bundle/Application/534A53C8-B40F-4EBF-971B-5FBA04EFD7E4/Pythonista3.app/Frameworks/Py3Kit.framework/pylib/site-packages/pythonista/objc_util.py", line 1066, in OMMainThreadDispatcher_invoke_imp
          retval = func(*args, **kwargs)
        File "/private/var/mobile/Containers/Shared/AppGroup/48E83FD5-AA04-45A2-86D9-75BE4BCA2B89/Pythonista3/Documents/T.py", line 17, in __init__
          handler = UIGestureRecognizerDelegate(UIHoverGestureRecognizer, self.v, self.hover)
      NameError: name 'UIGestureRecognizerDelegate' is not defined
      
      posted in Pythonista
      Raymond
      Raymond
    • RE: If the cursor is hover a view.

      @cvp Can you write an example with it ?

      posted in Pythonista
      Raymond
      Raymond
    • If the cursor is hover a view.

      is there a built-in way to detect if the mouse cursor is on hover a view ?
      if not, can i do it with objc_util

      Like this on swift UIkit:

      class MyView: UIView {
          override func hover(_ hover: Bool) {
              super.hover(hover)
      
              if hover {
                  // This code will execute when the mouse cursor enters the view.
              } else {
                  // This code will execute when the mouse cursor leaves the view.
              }
          }
      }
      
      posted in Pythonista
      Raymond
      Raymond
    • RE: What what what!! New version in TestFlight!!!

      @omz Welcome BACK !!!!!!!!!!!!!!!

      posted in Pythonista
      Raymond
      Raymond
    • RE: Get iPad cursor position.

      @cvp
      No, I mean position of mouse cursor. Not touch position.

      posted in Pythonista
      Raymond
      Raymond
    • Get iPad cursor position.

      When i use ui library, is there a way to know these things:

      • where is the cursor with x, y ?
      • is the cursor on top of a view ?

      Is these things possible with ui ? Or at least is there a library in pythonista can do one of these things ?

      posted in Pythonista
      Raymond
      Raymond
    • RE: How to get a touch position?

      Yes Yes Yes!!!! Thank you very much dude !!!

      posted in Pythonista
      Raymond
      Raymond
    • How to get a touch position?

      How to get the touch position on ui.View() ? Without using any library exept “ui” ?

      posted in Pythonista
      Raymond
      Raymond
    • How to do subprocess.Popen() on pythonista ?

      How to do subprocess.Popen() on pythonista ? It’s not work, its say:

      PermissionError: [Errno 1] Operation not permitted

      posted in Pythonista
      Raymond
      Raymond
    • RE: Can i use swiftUI in pythonista ?

      Ok, but why there is no new updates for pythonista ?

      posted in Pythonista
      Raymond
      Raymond
    • Can i use swiftUI in pythonista ?

      If yes, how could i do it ?

      Another question, why there is no support for pythonista project any more? Where is the owner ?

      posted in Pythonista
      Raymond
      Raymond
    • How can i get input from URL ?

      How can i do action input using pythonista url, like:

      pythonista3://Test.py/?action=run/<input>

      So when user click url i can get the string that in <input> place, help me if you can.

      posted in Pythonista
      Raymond
      Raymond
    • RE: Pythonista will be broken soon.

      That when you select a text, it show a things, like: copy, paste, translate and more, its not working in pythonista.

      posted in Pythonista
      Raymond
      Raymond
    • Pythonista will be broken soon.

      It’s seems that pythonista not working perfectly with IPadOS 16, The text shortcut not working will, and more.

      posted in Pythonista
      Raymond
      Raymond