Fixed bug where player script was skipping the first image

This commit is contained in:
Andrew Murray 2017-09-17 13:36:32 +10:00
parent 574a8e4793
commit 269b50e7a8

View File

@ -22,13 +22,10 @@ from PIL import Image, ImageTk
class UI(tkinter.Label):
def __init__(self, master, im):
if isinstance(im, list):
self.im = im
if isinstance(self.im, list):
# list of images
self.im = im[1:]
im = self.im[0]
else:
# sequence
self.im = im
im = self.im.pop(0)
if im.mode == "1":
self.image = ImageTk.BitmapImage(im, foreground="white")