mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Fix-up some tkinter demos.
This commit is contained in:
parent
36f72d3396
commit
0db85e5d46
4 changed files with 8 additions and 10 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue