Recently I have been working on a code and got stuck for days on this error. Basically the program calculates how many calories you have to eat everyday. I have to take input from an entry and I don’t know ...
Home/tkinter
Discy Latest Questions
I am trying to load in an image from the same folder as the one my python script is in. # create a class called Person # create init method # 2 attributes (name, and birthdate) # create an object from the Person ...
I’m trying to put a jpg image to a tkinter canvas. tkinter gives me this error: couldn’t recognize data in image file I use the code from the documentation: canv = Canvas(root, width=80, height=80, bg='white') canv.grid(row=2, column=3) img = PhotoImage(file="bll.jpg") canv.create_image(20,20, anchor=NW, image=img) Same thing with png ...