I am trying to implement animation to a discrete event simulation package, which I have running already in a CPython environment with tkinter.
The main program looks like:
...
simulate(till=200)
...
simulate(till=300)
print('the end')
In these simulate routines, the simulation runs and presents an animation.
Under Pythonista, I could put Run(MyScene()) in the simulate routine, but then I don't know how to return to the calling program, in order to give a second run command.
Is there any possibility to stop the scene and return to the caller?