omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. themusicman
    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 0
    • Topics 9
    • Posts 26
    • Best 1
    • Controversial 0
    • Groups 0

    Topics created by themusicman

    • themusicman

      Syntax for scene_drawing module...
      Pythonista • • themusicman

      5
      0
      Votes
      5
      Posts
      3170
      Views

      JonB

      For what it's worth -- https://forum.omz-software.com/topic/4168/analog-clock-example-to-ui-example-help
      Had an example of a scene that used a rounded_rect ShapeNode, setting the rotation to cause it to rotate. Likewise this gives you more control of your line -- you would have to calculate the angle to rotate based on your desired start/end points (using math.atan)

    • themusicman

      How to get a SpriteNode to change image / colour on screen-touching another Sprite?
      Pythonista • • themusicman

      7
      0
      Votes
      7
      Posts
      3251
      Views

      themusicman

      Absolutely loving the help and support from experts on here, thanks so much guys and gals.

      @Splefix - that's an awesome idea, thanks for the suggestion.

      @JonB - yep, this is exactly what I ended up doing, Jon. Once I had my head around the logic and syntax, even this old chap managed to code this section in a few mins.

      Still a few things to iron out in the code, but all in all, for my first real attempt at a slightly longer Python script than Print("Hello World:), I am pretty pleased with myself.

      Connect4 coded in Pythonista and running (albeit with a few glitches) on my iPad. Who'd have thunk it!! haha

    • themusicman

      Getting the pixel dimensions of a sprite? How?
      Pythonista • • themusicman

      4
      0
      Votes
      4
      Posts
      1964
      Views

      mikael

      @themusicman, one idea would be to initialize a ui.Image with the same built-in image name, and check the size attribute.

    • themusicman

      Does the order of def statements matter?
      Pythonista • • themusicman

      2
      0
      Votes
      2
      Posts
      1365
      Views

      cvp

      @themusicman must be called as

      self.create_board()
    • themusicman

      How to add image(s) from iPad camera roll to Pythonista image library
      Pythonista • • themusicman

      21
      0
      Votes
      21
      Posts
      9381
      Views

      PinhoBD

      Thank you. I finally saw the file I imported a few hours before. Now I believe I did the right things. If I can repeat it the second time, I should be able to repeat it again and again. I appreciate your help!!

    • themusicman

      Using numpy getting error: module numpy has no attribute 'flip' - yet it does!!!
      Pythonista • • themusicman

      8
      0
      Votes
      8
      Posts
      6218
      Views

      victordomingos

      I have been hitting the old NumPy wall a lot of times lately, as it is a very frequent dependency in other packages (for instance astropy and its affiliated packages like astroplan). NumPy 1.8.0 is now about 6 years old, which makes it very like to be an issue for almost any packages that requires it. Simply too old.

    • themusicman

      How to create stand-alone apps on iPad / iPhone with Pythonista - is this possible?
      Pythonista • • themusicman

      2
      0
      Votes
      2
      Posts
      1718
      Views

      mikael

      @themusicman, it is possible, with XCode on a Mac, an Apple dev account and some hard work. For a long time Python 3 was not supported, but now there are successful examples of people submitting Python 3 apps.

      See this thread for more info.

    • themusicman

      Can you develop apps for Pythonista iPad on a Mac then port across?
      Pythonista • • themusicman

      11
      0
      Votes
      11
      Posts
      7186
      Views

      baekyongsun01

      Pythonista is a Python development environment for iOS devices, including the iPad. While it's possible to develop Python apps on a Mac, you cannot directly port them across to Pythonista on an iPad. This is because Pythonista uses a customized Python interpreter that includes iOS-specific features and frameworks that are not available on a Mac.

      For more assistance, you can book a free consultation from our ios app development company in Singapore.

    • themusicman

      how To import modules such as pygame etc
      Pythonista • • themusicman

      6
      0
      Votes
      6
      Posts
      4553
      Views

      themusicman

      Super responses, thanks folks.

      I shall take a look into 'scene' and try to figure it out. I have been working on learning python and came up with a version of Connect4 on the Mac using PyCharm. I'll see if I can use 'scene' or even the UI that is provided with pythonista to do it, thanks for the heads up @Drizzel.

      I'll look into stash ywang too, @mikael - many thanks.