Wie füge ich ein Bild in Tkinter hinzu?
Posted: 08 Feb 2025, 16:22
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()