+ 1
What's wrong in this code, iam getting an error as "can't recognize image data"
import os from tkinter import * os.chdir("/storage/emulated/0/Fonts") print(os.getcwd()) r=Tk() a=PhotoImage(file="Jayesh.jpg") a.pack() r.mainloop()
1 ответ
+ 4
PhotoImage works only with gif format. With JPG you need to use some things else.
http://effbot.org/tkinterbook/photoimage.htm