Clear canvas when at the end

This commit is contained in:
MikeTheWatchGuy 2018-09-16 14:34:41 -04:00
parent 674d050ca1
commit 25a5266dce
1 changed files with 1 additions and 0 deletions

View File

@ -68,6 +68,7 @@ while True:
if i >= x_right:
i = 0
prev_x = prev_y = last_x = last_y = 0
canvas.delete('all')
else: i += 1
# tell thread we're done. wait for thread to exit