def nextphoto():
global i
i=i+1
name = list[i]
Resim = Image.open(f"Champions\{name}").resize((300, 300))
Resim1 = ImageTk.PhotoImage(Resim)
Label2=ttk.Label(root,image=Resim1)
Label2.grid(row=1,column=0)
In this chunk of code when i call this function with button widget there supposed to be a label created including an image inside. I have been pounding my head over an hour but there is no error or something. Why I can't get my photo printed out? Anybody have any idea? (It is from tkinter library)
I am sure that the name variable gets correctly just photo is not imprinted.