0
Q:

couldn't recognize data in image file

# PIL solution
from tkinter import *
from PIL import ImageTk, Image

tkFenster = Tk()

canv = Canvas(master=tkFenster)
canv.place(x=0, y=0, width=750, height=531)

img = ImageTk.PhotoImage(Image.open("mond.gif"))  # <-- PIL
canv.create_image(0, 0, image=img, anchor='nw')

mainloop()
1

New to Communities?

Join the community