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():
|
def updateImage():
|
||||||
global canvas = Image.new('RGB', (192, 128), color = 'red')
|
global canvas
|
||||||
global canvas = canvas.paste(get_track(), (0,0))
|
canvas = Image.new('RGB', (192, 128), color = 'red')
|
||||||
global changed = True
|
canvas = canvas.paste(get_track(), (0,0))
|
||||||
|
global changed
|
||||||
|
changed = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -90,7 +92,8 @@ if __name__ == "__main__":
|
||||||
while True:
|
while True:
|
||||||
if (changed):
|
if (changed):
|
||||||
showImage(canvas)
|
showImage(canvas)
|
||||||
global changed = False
|
global changed
|
||||||
|
changed = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue