I'm not sure if I understand the problem correctly, and I think a solution has already have been suggested.

However, I would recommend using scene.run() for presenting, and then adding UI elements e.g. in setup(), like this:

from scene import * A = Action class MyScene (Scene): def setup(self): button = ui.Button(title='Tap me') self.view.add_subview(button) def did_change_size(self): pass # You may want to do layout here... # ... if __name__ == '__main__': run(MyScene(), show_fps=False)

(Modified just slightly from the standard Game/Animation template)