yes.
This commit is contained in:
parent
d09b7cdcb3
commit
99de81a654
1 changed files with 7 additions and 4 deletions
11
main.py
11
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
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue