img = PhotoImage(file=“d/f.gif”)
canv.create_image(0,0,image=img, anchor=“nw”)
Кто знает, почему изображение не отображается когда использую этот код в процедуре?
imgs = []
def addimgfoo():
img = PhotoImage(file="d/f.gif")
canv.create_image(0,0,image=img, anchor="nw")
imgs.append(img)