omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. nerdtronn
    3. Topics

    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 2
    • Topics 5
    • Posts 12
    • Best 3
    • Controversial 0
    • Groups 0

    Topics created by nerdtronn

    • nerdtronn

      Reverse geo code in a scene script
      Pythonista • location geocode scene • • nerdtronn

      6
      0
      Votes
      6
      Posts
      1343
      Views

      Bambla

      @nerdtron Thanks, I know the console displays the whole text.

      I was just wondering if there is an easy way to place print commands with coordinates into a scene wirhout having to use labelnodes.

      The old 8 Bit Basic dialects had this, and for Python being a mental descendant of this programming Culture I wish there was the same easy approach.

    • nerdtronn

      debugging possible memory leak
      Pythonista • • nerdtronn

      4
      1
      Votes
      4
      Posts
      932
      Views

      nerdtronn

      Thanks for the replies and suggestions!

      I tried using the approach of creating SpriteNode obs for each vertical slice in the graph and setting their texture to None along with the color as desired. Then, in the update, I just loop through them and set their size to (1, desired_height) and position to the proper place.

      On initial testing I noticed artifacts, gaps occasionally between the obs on screen. I bumped the size up to (1.1, desired_height) and that fixed it. Probably rounding errors, etc. causing some gaps. With this in place, it seems to be working and pythonista doesn't crash after awhile since I'm not continually creating new path obs with every update.

      The shader approach sounds interesting, seeing that now, but haven't tried it. Will keep that in mind for the future though, maybe worth experimenting with.

    • nerdtronn

      async web request from a Scene script
      Pythonista • http web asyncio scene • • nerdtronn

      7
      0
      Votes
      7
      Posts
      1371
      Views

      nerdtronn

      Thanks for the replies! Will dig into these and see what I can get working.

    • nerdtronn

      Problem positioning ShapeNode
      Pythonista • ui.path scene • • nerdtronn

      4
      0
      Votes
      4
      Posts
      983
      Views

      nerdtronn

      Thanks for the replies! After reading them a few times and experimenting I think I'm understanding it now.

      To create and position a rect using paths, I'm creating it with ui.Path.rect() and just giving 0,0 for the position with the desired size. Then I'm setting the position property to locate the center where I want it.

      Seems to be working, thanks for the help!

    • nerdtronn

      file storage and iCloud sync question
      Pythonista • file handling sync icloud • • nerdtronn

      4
      0
      Votes
      4
      Posts
      1002
      Views

      nerdtronn

      @ccc Can you elaborate on that? That looks similar to what I have, though, a little more compact. Are you saying that addresses the cloud sync issue here?

      @cvp Thanks! That sounds like an interesting approach. I could append something unique each time and then when loading load the one with the largest unique value. I'll give that a try.