Nov-28-2018, 06:15 PM
Hi all, I have a problem with displaying my image in tkinter. I´m creating a class, which creates a canvas and put an image from my file there. This is my code so far:
Thanks in advance.
class Try: ... creating a canvas ... def method(self): player_icon = tkinter.PhotoImage(file="C://Users//name//Documents//PYTHON//folder//img_player.png") self.canvas.create_image(50, 50, image=player_icon)It doesn´t reach any error, it seems like it found that image but simply doesn´t show it. What am I doing wrong?
Thanks in advance.