summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-09-07 15:11:30 (GMT)
committerGuido van Rossum <guido@python.org>1992-09-07 15:11:30 (GMT)
commit2de9b68fea0be67d731b275b38fa015d95702f69 (patch)
tree6e1c5e0ee88791b914c666bc8025d9ef4de35076 /Demo
parent00ffea36155d253ad5ccb26f2d14e1545626a723 (diff)
downloadcpython-2de9b68fea0be67d731b275b38fa015d95702f69.zip
cpython-2de9b68fea0be67d731b275b38fa015d95702f69.tar.gz
cpython-2de9b68fea0be67d731b275b38fa015d95702f69.tar.bz2
Clear the window when receiving a REDRAW event and not playing
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/sgi/video/Vplay.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Demo/sgi/video/Vplay.py b/Demo/sgi/video/Vplay.py
index facd20f..4fe13c5 100755
--- a/Demo/sgi/video/Vplay.py
+++ b/Demo/sgi/video/Vplay.py
@@ -170,6 +170,8 @@ def process(filename):
if not looping:
while not stop:
dev, val = gl.qread()
+ if dev == REDRAW:
+ vin.clear()
if dev == LEFTMOUSE and val == 1:
break # Continue outer loop
if dev == ESCKEY and val == 1 or \