This one had me going for a day or so. I wrote an animation with scene and it drew the wrong thing. I finally traced it down to a variable of mine getting changed outside of my code. I'm guessing I overrode an internal variable accidentally and scene was changing the value.
Simple example to demonstrate. Run it for a second, stop it, see in the console that the variable gets constantly changed.
from scene import *
class MyScene (Scene):
t = 0.01
def draw(self):
print(self.t)
run(MyScene())
Is there a better place for variables that persist between draw() calls?