import tkinter
pnum = 0
def photograph():
global pnum
canvas.delete("PH")
canvas.create_image(400,300,image=photo[pnum], tag="PH")#400 canvas内の画像の位置。x座標 300 canvas内の画像の位置。y座標。
pnum = pnum + 1
if pnum >= len(photo):
pnum = 0
root.after(7000, photograph)
root = tkinter.Tk()
root.title("デジタルフォト")
canvas = tkinter.Canvas(width=800, height=600)
canvas.pack()
photo = [
tkinter.PhotoImage(file="cat5.png"), #pngじゃないとダメっぽい
tkinter.PhotoImage(file="****.png"),
tkinter.PhotoImage(file="****.png"),
tkinter.PhotoImage(file="****.png")
]
photograph()
root.mainloop()