Page 1 of 1

Wie füge ich ein Bild in Tkinter hinzu?

Posted: 08 Feb 2025, 16:22
by Guest
Wie füge ich ein Bild in tkinter hinzu?

Code: Select all

root = tk.Tk()
img = ImageTk.PhotoImage(Image.open(path))
panel = tk.Label(root, image = img)
panel.pack(side = "bottom", fill = "both", expand = "yes")
root.mainloop()