From 99de81a6541083dae1ecef5c7c000636a2e6cffe Mon Sep 17 00:00:00 2001 From: Lukas Schulz Date: Sun, 20 Dec 2020 00:16:16 +0100 Subject: [PATCH] yes. --- main.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index d910c30..d1e9e63 100644 --- a/main.py +++ b/main.py @@ -77,9 +77,11 @@ def main(): def updateImage(): - global canvas = Image.new('RGB', (192, 128), color = 'red') - global canvas = canvas.paste(get_track(), (0,0)) - global changed = True + global canvas + canvas = Image.new('RGB', (192, 128), color = 'red') + canvas = canvas.paste(get_track(), (0,0)) + global changed + changed = True @@ -90,7 +92,8 @@ if __name__ == "__main__": while True: if (changed): showImage(canvas) - global changed = False + global changed + changed = False