summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/brownian2.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-02 23:30:09 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-02 23:30:09 (GMT)
commit0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64 (patch)
treedb1be0ea08df48f2b46af255e528bed14f2964d3 /Demo/tkinter/guido/brownian2.py
parent36f72d339698b651b944fc1ed227a57ecc81bd5e (diff)
downloadcpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.zip
cpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.tar.gz
cpython-0db85e5d46d0c0e57377c0bdbfdccb91eb36ec64.tar.bz2
Fix-up some tkinter demos.
Diffstat (limited to 'Demo/tkinter/guido/brownian2.py')
-rw-r--r--Demo/tkinter/guido/brownian2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Demo/tkinter/guido/brownian2.py b/Demo/tkinter/guido/brownian2.py
index dc1d43a..3adcd68 100644
--- a/Demo/tkinter/guido/brownian2.py
+++ b/Demo/tkinter/guido/brownian2.py
@@ -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)