mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Clear the window when receiving a REDRAW event and not playing
This commit is contained in:
parent
00ffea3615
commit
2de9b68fea
1 changed files with 2 additions and 0 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue