import tkinter

pnum = 0

def photograph():
    global pnum
    canvas.delete('PH')
    canvas.create_image(400, 300, image=photo[pnum], tag="PH")
    pnum += 1
    if pnum >= len(photo):
        pnum = 0
    root.after(100, photograph)


root = tkinter.Tk()
root.title("디지털 액자")
canvas = tkinter.Canvas(width=800, height=600)
canvas.pack()
photo = [
    tkinter.PhotoImage(file="cat00.png"),
    tkinter.PhotoImage(file="cat01.png"),
    tkinter.PhotoImage(file="cat02.png"),
    tkinter.PhotoImage(file="cat03.png"),
]
photograph()
root.mainloop()
import tkinter

pnum = 0

def photograph():
    global pnum
    canvas.delete('PH')
    canvas.create_image(400, 300, image=photo[pnum], tag="PH")
    pnum += 1
    if pnum >= len(photo):
        pnum = 0
    root.after(100, photograph)


root = tkinter.Tk()
root.title("디지털 액자")
canvas = tkinter.Canvas(width=800, height=600)
canvas.pack()
photo = [
    tkinter.PhotoImage(file="cat00.png"),
    tkinter.PhotoImage(file="cat01.png"),
    tkinter.PhotoImage(file="cat02.png"),
    tkinter.PhotoImage(file="cat03.png"),
]
photograph()
root.mainloop()