0
파일을 선택하고 레이블의 이름을 표시하려고합니다.Python 3 - Tcl/Tk 파일 이름을 filedialog에서 얻고 레이블을 변경하는 방법
def onOpen():
photo_label = filedialog.askopenfilename()
pass
#photo code
photo = PhotoImage(file="smile.png")
photo_label = Button(image=photo, command=onOpen).grid()
#I am attempting to change text=photo_label to reflect the file name
text = Label(text=photo_label) # included to show background color
text.grid()