mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Fixed bug where player script was skipping the first image
This commit is contained in:
parent
574a8e4793
commit
269b50e7a8
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue
Block a user