Quiero saber como hago para poder obtener la imagen de mi label para modificarlo con otro label
Código:
from tkinter import Tk, Label
from PIL import ImageTk, Image
from tkinter import filedialog
root = Tk()
path = filedialog.askopenfilename(filetypes=[
('Image', '.jpg'),
('Image', '.jpge'),
('Image', '.png')
])
img = ImageTk.PhotoImage(Image.open(path))
panel = Label(root, image = img)
panel.pack(side = "bottom", fill = "both", expand = "yes")
root.mainloop()