button : 마우스와 키보드의 이벤트에 반응하는 레이블
사용법
| 
 | 
상세 option에 대한 설명
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/button.html
예제
# python 3.4
from tkinter import *
root = Tk()
class GUI:
    def __init__(self, master):
        f = Frame(master)
        Button(f, text = "OK", fg="red", command=master.quit).pack(side=LEFT)
        Button(f, text = "CANCEL", fg="blue", command=master.quit).pack(side=LEFT)
        Button(f, text = "DISABLED", state=DISABLED).pack(side=LEFT)
        f.pack()
myGUI = GUI(root)
root.mainloop()
실행결과
'모듈, 프레임웍 > tkinter @ Python 3.4' 카테고리의 다른 글
| checkbutton (0) | 2015.06.29 | 
|---|---|
| Entry (0) | 2015.06.26 | 
| Frame (0) | 2015.06.22 | 
| Widget (0) | 2015.06.22 | 
| tkinter (0) | 2015.06.21 |