From 25a5266dce9a31b048eabcdf0e4b095a961b9bee Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Sun, 16 Sep 2018 14:34:41 -0400 Subject: [PATCH] Clear canvas when at the end --- Demo_Ping_Line_Graph.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Demo_Ping_Line_Graph.py b/Demo_Ping_Line_Graph.py index 20922011..36cd8267 100644 --- a/Demo_Ping_Line_Graph.py +++ b/Demo_Ping_Line_Graph.py @@ -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