Wie füge ich ein Bild in Tkinter hinzu?Python

Python-Programme
Guest
 Wie füge ich ein Bild in Tkinter hinzu?

Post 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()

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post