This is my code:
from tkinter import *
from PIL import Image, ImageTk
im = Image.open(r"1asd.jpg")
root = Tk()
tkimage = ImageTk.PhotoImage(im)
lst = []
for i in range(1, 100):
A = Label(root, image=tkimage, text="File number "+str(i), compound=RIGHT)
A.config(font=("Courier", 44))
lst.append(A)
for i in lst:
i.pack()
root.mainloop()
the problem is, that I can't see all the images because there are too much from them. how can I make a scrollbar? I tried to use the "Listbox" object but it doesn't let me place an image next to the text.