요약
여러개의 옵션 그룹 중 한 개를 선택하도록 할 경우 사용되는 위젯
사용법
|
option에 대한 설명
http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/radiobutton.html
예제
# python 3.4
from tkinter import *
root = Tk()
v = IntVar()
for text, val in [('Green', 1), ('Yellow', 2), ('Red', 3)] :
Radiobutton(root, text=text, variable=v, value=val).pack()
root.mainloop()
실행결과
'모듈, 프레임웍 > tkinter @ Python 3.4' 카테고리의 다른 글
| widget의 배치 (0) | 2015.07.08 |
|---|---|
| Menubutton (0) | 2015.07.06 |
| checkbutton (0) | 2015.06.29 |
| Entry (0) | 2015.06.26 |
| Button (0) | 2015.06.23 |