Fix-up some tkinter demos.

This commit is contained in:
Georg Brandl 2010-08-02 23:30:09 +00:00
parent 36f72d3396
commit 0db85e5d46
4 changed files with 8 additions and 10 deletions

View file

@ -32,7 +32,7 @@ def particle(canvas): # particle = iterator over the moves
yield None
def move(particle): # move the particle at random time
particle.next()
next(particle)
dt = random.expovariate(LAMBDA)
root.after(int(dt*1000), move, particle)