I am trying to add an image to TopLevel
using create_image
. And I have an error: AttributeError: 'Toplevel' object has no attribute 'create_image'
.
Can you help me solve this problem please?
koniec=Toplevel()
koniec.minsize(width=200, height=250)
koniec.title("Víťaz!")
img=tkinter.PhotoImage(file='obrazok.gif')
koniec.create_image(100,100,image=obr)