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.


    Building a mini-game in the Pythonista Keyboard

    Pythonista
    3
    3
    1492
    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.
    • abredall
      abredall last edited by

      I was wondering if it would be possible to build a super simple game to be played on the thin one-row bar above the pythonista keyboard?

      My first guess was to try to feed my Scene to the add_subview method of my main ui.View class, but this method obviously requires another View, not a Scene. Is there a way to wrap a scene in a view for this purpose? I feel like using a SceneView instead might help, but I can't quite wrap my head around the implementation, as I'm very new to Python.

      mikael cvp 2 Replies Last reply Reply Quote 0
      • mikael
        mikael @abredall last edited by

        @abredall, there is an auxiliary view that can be placed above the keyboard with objc_util, I will see if I can find the time to get you some sample code. There is also SceneView which is meant to hold a Scene, so maybe you can make it work.

        1 Reply Last reply Reply Quote 0
        • cvp
          cvp @abredall last edited by cvp

          @abredall not a scene but a sample with ui.View/update, here

          You can Stop/restart the car by tapping it.

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