I have a list of images
and I want them to be shown one at a time and in order and that each time the program starts, the following is displayed
Example:
Start the program 1 time
Img1
Start the program 2 times
Img2 ...
and so on
I tried with the for loop and it shows me the position in the list
[CORRECTION AFTER COMMENTS]
I went back to check the loop the entry is this:
def imgor():
for imagen in Imagenes:
imagen
print imagen
Imagenfin=imgor()
lbl=Label(root,image=imgor()).place(x=00,y=00)
and the output is this:
>>> pyimage1
pyimage2
pyimage3
pyimage4
pyimage5
pyimage7
pyimage8
pyimage9
pyimage10
pyimage1
pyimage2
pyimage3
pyimage4
pyimage5
pyimage7
pyimage8
pyimage9
pyimage10
but at the end a black screen opens
[SECOND CORRECTION]
from Tkinter import*
def p():
root = Tk()
sp = Ventana(root)
sp.config(bg="black")
Img1=PhotoImage(file="Libre.gif")
Img2=PhotoImage(file="Soy.gif")
Img3=PhotoImage(file="universe.gif")
Img4=PhotoImage(file="BBN.gif")
Img5=PhotoImage(file="tr.gif")
Img6=PhotoImage(file="final.gif")
Img7=PhotoImage(file="alc.gif")
Img8=PhotoImage(file="cer.gif")
Img9=PhotoImage(file="at.gif")
Img10=PhotoImage(file="bos.gif")
Img11=PhotoImage(file="se.gif")
#Img=PhotoImage(file=".gif")
Imagenes=[Img1,Img2,Img3,Img4,Img5,Img7,Img8,Img9,Img10]
def imgor():
for imagen in Imagenes:
imagen
print imagen
Imagenfin=imgor()
lbl=Label(root,image=imgor()).place(x=00,y=00)
root.after(6010,root.destroy())
root.mainloop()
now if there is the complete code