omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. robnee

    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 0
    • Followers 0
    • Topics 5
    • Posts 20
    • Best 1
    • Controversial 0
    • Groups 0

    robnee

    @robnee

    1
    Reputation
    1154
    Profile views
    20
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    robnee Unfollow Follow

    Best posts made by robnee

    • Abandonware?

      Is Editorial still supported? It doesn't seem to be updated anymore.

      posted in Editorial
      robnee
      robnee

    Latest posts made by robnee

    • RE: New Beta for Pythonista 3.3

      Any chance on addin a theme element for the stderr console text? The dark red is hard to read with some of the dark themes.

      posted in Pythonista
      robnee
      robnee
    • Specifying stderr color in theme

      Is there a way to set the stderr color used for trace backs via the theming engine? The default red color does not work well on dark backgrounds for me. Maybe it's my eyes but I can't read it. I don't see an obvious option for this though. Thanks.

      posted in Pythonista
      robnee
      robnee
    • RE: sys.argv when using the debugger

      Thanks for sharing this JonB. This technique looks handy. I will give this a try.

      posted in Pythonista
      robnee
      robnee
    • RE: Breakpoints in multiple modules

      Thanks. At least I'm not crazy. This really limits the usefulness of the debugger. Sometimes the call chain can be complex and stepping to get to the code I need to look at isn't feasible. I might try a few more things and report back.

      posted in Pythonista
      robnee
      robnee
    • sys.argv when using the debugger

      Is it possible to debug a program that requires command line arguments via sys.argv? This behaves differently when launched via Run vs Debug (after setting a breakpoint) and the command line arguments, when specified, are lost.

      Import sys
      
      Print(sys.argv)
      
      posted in Pythonista
      robnee
      robnee
    • RE: Breakpoints in multiple modules

      Can anyone confirm whether one can set breakpoints in a project with multiple modules?

      posted in Pythonista
      robnee
      robnee
    • Breakpoints in multiple modules

      Is there a trick to setting breakpoints across modules? If I have a python file, a.py that imports b.py and I set a breakpoint in b.py when I run a.py the breakpoint does not fire for me. The code in b.py runs fine. Just the breakpoint isn't firing Is there a way to use the debugger here? What am I missing?

      Thanks if you can help.

      posted in Pythonista
      robnee
      robnee
    • RE: ImportError

      I was able to work around a similar problem without needing to move the project from Working Copy to Pythonista using a custom import hook. It's a hack but it works for me. Each file seems to need to be opened by Pythonista in it's external location at least once before importing via the hook will work.

      https://github.com/robnee/importhack

      posted in Pythonista
      robnee
      robnee
    • RE: ImportError

      Are your modules in an external app such as Working Copyand you are trying to import them? Is that the external files you mention, an external file provider? There’s a limitation to those because even if the path is set properly iOS limits searching of a file providers files. There are some ugly workarounds for that though

      posted in Pythonista
      robnee
      robnee
    • RE: Disable stop button (X) in Scene

      Hide_title_bar does not work for me. Not sure why people recommend it.

      This is a solution I came up with.

      class MyScene(scene.Scene):
          def setup(self):
              self.label = scene.LabelNode('Test hide title bar', 
              position=self.size/2, parent=self)
              self.hide_close()
      
          def hide_close(self, state=True):
              from obj_util import ObjCInstance
              v = ObjCInstance(self.view)
              # Find close button.  I'm sure this is the worst way to do it
              for x in v.subviews():
                  if str(x.description()).find('UIButton) >= 0:
                      x.setHidden(state)
      
      scene.run(MyScene())
      
      posted in Pythonista
      robnee
      robnee