from tkinter import *
from PIL import ImageTk, Image
root = Tk()
nameList = ["images/icons/first.bmp", "images/icons/second.bmp"]
ycord = 0
for execute in nameList:
myimg = ImageTk.PhotoImage(Image.open(execute))
Label(image=myimg).place(x=0, y=0)
ycord += 80
root.mainloop()
With this code, for some reason the first.bmp
doesnt get shown in the tkinter window. Only the second.bmp
does appear.