Thanks to all for the comments and guidance. I had written a couple of scripts using the ui module already and felt pretty comfortable with it. Although an array of buttons would meet my needs, I did want to try combining ui and SceneView, mostly for learning purposes. So far I've managed to place a Custom view into my ui, and populate it with a scene that contains an array of cells, which are SpriteNodes textured as circles. Next it's figuring out how to capture the location of touches and process them to change the texture of the sprite at that location. I need to figure out the best way to translate from a view location to which is sprite located there.
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.
Latest posts made by red_shift
-
RE: Scene within ui
-
RE: Scene within ui
Thanks for pointing me to SceneView. I'm now looking into using an array of SpriteNodes.
-
Scene within ui
I'm a Pythonista 3 and Python newcomer, so simpler answers are preferred...I'm wanting to display an n x n grid of cells within a ui which has some other fields and buttons. When any of the cells in the grid are touched, I'd like that cell to go from empty to filled or vice versa. I want to have an array that captures the content of each cell once the user is finished touching cells. Can someone provide some guidance on the best approach? I was assuming I'd have to define a scene within the ui view, but not clear on how these work since I don't want it to be full screen.