Forum Archive

Building a mini-game in the Pythonista Keyboard

abredall

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

@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.

cvp

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

You can Stop/restart the car by tapping it.