[pypy-commit] extradoc extradoc: example input

hakanardo noreply at buildbot.pypy.org
Wed Sep 12 13:29:25 CEST 2012


Author: Hakan Ardo <hakan at debian.org>
Branch: extradoc
Changeset: r4797:175276616521
Date: 2012-09-12 13:28 +0200
http://bitbucket.org/pypy/extradoc/changeset/175276616521/

Log:	example input

diff --git a/talk/dls2012/demo/demo.avi b/talk/dls2012/demo/demo.avi
new file mode 100644
index 0000000000000000000000000000000000000000..bcf5ab7ffeae166de64a19cfdfe720c3e76c687e
GIT binary patch

[cut]

diff --git a/talk/dls2012/demo/demo.py b/talk/dls2012/demo/demo.py
--- a/talk/dls2012/demo/demo.py
+++ b/talk/dls2012/demo/demo.py
@@ -32,7 +32,7 @@
     def update(self, frame):
         view(frame)
 """
-    runner = Popen(['pypy', 'run.py', 'demo.mpg'])
+    runner = Popen(['pypy', 'run.py', 'demo.avi'])
     vim = Vim('analytics.py')
 
     pause("We'r looking at the input and output of this Tracker object that\n" + 
diff --git a/talk/dls2012/demo/run.py b/talk/dls2012/demo/run.py
--- a/talk/dls2012/demo/run.py
+++ b/talk/dls2012/demo/run.py
@@ -8,8 +8,9 @@
     fn = 'tv://'
 
 tracker = Tracker()
-for img in mplayer(fn):
-    view(img, 'Input')
-    tracker.update(img)
+while True:
+    for img in mplayer(fn):
+        view(img, 'Input')
+        tracker.update(img)
 
 


More information about the pypy-commit mailing list