Python Tkinter - Label from tkinter import *root=Tk()var=StringVar()label1=Label(root,textvariable=var) #tk변수에 문자열을 연결하여 label객체생성label2=Label(root,text="Hello world") #객체생성시 문자열을 지정label1.pack()label2.pack()var.set("helloworld")root.mainloop() normal : 보통의 상태disabled : 비활성화상태active : 액티브상태 -. activebackground [default value:'SystemButtonFace'] : colorLabel위젯이 active상태일때 위젯의 배경색 -. act.. 더보기 이전 1 ··· 53 54 55 56 57 58 59 ··· 77 다음