hi im new to python and I'm having trouble getting this code to run. Instead I get this error, in tkinter . I'm using visual studio 2022 and I'm trying to add a PNG image to the program, I created a new solution and copy/pasted the PNG pic to a new folder within the solution
failed to create an iconphoto with image "icon.png"
my code so far
failed to create an iconphoto with image "icon.png"
my code so far
from tkinter import * window = Tk() window.geometry("420x420") window.title("Bro Coding") icon = PhotoImage('icon.png') window.iconphoto(True,icon) window.mainloop()This is my first python script, so I'm not against learning more.