bug fix and professional display started

This commit is contained in:
Neythen
2021-07-05 19:51:40 +01:00
parent 2b3fff395a
commit cc48129f69
25 changed files with 235 additions and 78 deletions

View File

@@ -202,8 +202,10 @@ def DisplayImage():
print('No file selected')
return hello()
if fle and allowed_file(fle.filename):
filename = 'display_image.ppm'
fle.save(os.path.join(os.path.dirname(os.path.abspath(__file__)), filename))
filename = 'user_image.ppm'
print('asfdsdaf')
print(fle)
fle.save(os.path.join(os.path.dirname(os.path.abspath(__file__)),os.path.join('display_images', filename)))
global LastCommand
LastCommand = 'Add a new logo file'
ticker.sendline('K')
@@ -224,8 +226,8 @@ def DisplayGIF():
return hello()
if fle:
print('in')
filename = 'display_gif.ppm'
fle.save(os.path.join(os.path.dirname(os.path.abspath(__file__)), filename))
filename = 'user_gif.ppm'
fle.save(os.path.join(os.path.dirname(os.path.abspath(__file__)),os.path.join('display_images', filename)))
global LastCommand
LastCommand = 'Add a new logo file'
ticker.sendline('K')