I want to set my Canvas background as gif. Here's what I'm currently trying to do:
def convertPage():
for i in mw.winfo_children():
i.destroy()
drop_file = Canvas(mw, width=270, height=270)
drop_file.place(x=25, y=25)
image = ImageTk.PhotoImage(file="media/ukral.gif")
drop_file.create_image(10, 10, image=image, anchor=NW)
Button(mw, text='KEYWORD IMAGE', command=fileDialog, font=('Inter', 24), fg='#3EC96D', bg='black').place(width=250, height=60, relx=0.1875, rely=0.628)
Button(mw, text='BACK', command=mainPage, font=fnt_sml, fg='#3EC96D', bg='black').place(width=250, height=60, relx=0.1875, rely=0.806)
There are no errors returned in the console, but gif doesn't work, the background of Canvas is white. BTW, I'm doing it from Mac, so maybe this could be the issue.
Update: finally found the solution here: