본문 바로가기
Python/Tkinter

[Tkinter] 15. 스핀박스 Spinbox 위젯

by 파인스코어 2024. 2. 16.
728x90

스핀박스 Spinbox

스핀박스 위젯은 사용자가 숫자, 항목 등을 단계적으로 선택할 수 있게 해주는 위젯이다.

s = ttk.Spinbox([부모], from_=[시작값], to=[마지막값], textvariable=[변수])

구성 옵션

from_, to

시작 값, 마지막 값

from이 아닌 from_인 것에 주의하자.

textvariable

값을 저장할 변수

참조

https://tkdocs.com/tutorial/morewidgets.html#spinbox

https://tcl.tk/man/tcl8.6/TkCmd/ttk_spinbox.htm

728x90