vscode (1) 썸네일형 리스트형 파이썬 python 레이블 label 기초예제 from tkinter import * root =Tk() root.title(" GUI") root.geometry("640x480") label1 = Label(root, text ="안녕하세요") label1.pack() photo = PhotoImage(file = "gui_basic/img.png") label2 = Label(root, image = photo) label2.pack() def change() : label1.config(text= " 또만나요") global photo2 photo2 = PhotoImage(file="gui_basic/img2.png") label2.config(image=photo2) btn = Button(root, text ="클릭", command = .. 이전 1 다음