got rid of '''

This commit is contained in:
Justin 2022-06-20 17:46:06 +08:00 committed by GitHub
parent d0208cf5f9
commit 1679f9f62d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -673,9 +673,8 @@ class StockTicker():
i+=1
def textImage(self, text, font, r = 255, g = 255, b = 255, matrix_height = False, w_buff = 3, h_buff = 3, background = False, location = False):
'''
creates and returns a ppm image containing the text in the supplied font and colour
'''
#creates and returns a ppm image containing the text in the supplied font and colour
width, height = self.get_text_dimensions(text, font)
@ -698,9 +697,9 @@ class StockTicker():
def getUserMessages(self):
'''
displays the text entered in the webpage by the user.
'''
#displays the text entered in the webpage by the user.
@ -2847,20 +2846,20 @@ class StockTicker():
#below code stitches title and GIF together
'''
frames = []
for i, frame in enumerate(ImageSequence.Iterator(gif)):
# frames = []
if all_settings['title']:
f = self.stitchImage([title_img, frame])
else:
f = self.stitchImage([frame])
frames.append(f)
# for i, frame in enumerate(ImageSequence.Iterator(gif)):
# if all_settings['title']:
# f = self.stitchImage([title_img, frame])
# else:
# f = self.stitchImage([frame])
# frames.append(f)
frames[0].save('./display_images/Custom GIFs.gif', save_all=True, append_images=frames[1:], loop=0, optimize = False)
'''
# frames[0].save('./display_images/Custom GIFs.gif', save_all=True, append_images=frames[1:], loop=0, optimize = False)
return GIFs