1
I need this code to open an image in a label, but this error is returned: "Runtimeerror: Too Early to create image"
from tkinter import *
i = PhotoImage(file="ddddd.png")
root = Tk()
label = Label(root, image=i)
label.pack()
root.mainloop()
ops: The . png file is in the same program folder, running the program by Pycharm and python3
PERFECT, it worked, thank you very much!!
– Programador