by Guest » 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()
Wie füge ich ein Bild in tkinter hinzu?[code]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()
[/code]