]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clear the window when receiving a REDRAW event and not playing
authorGuido van Rossum <guido@python.org>
Mon, 7 Sep 1992 15:11:30 +0000 (15:11 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 7 Sep 1992 15:11:30 +0000 (15:11 +0000)
Demo/sgi/video/Vplay.py

index facd20f3fea65ee82a24a2aced35efee2f4306d3..4fe13c5995ae232d41fc5486a58b7ff3b90a84fb 100755 (executable)
@@ -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 \