728x90
스핀박스 Spinbox
스핀박스 위젯은 사용자가 숫자, 항목 등을 단계적으로 선택할 수 있게 해주는 위젯이다.
s = ttk.Spinbox([부모], from_=[시작값], to=[마지막값], textvariable=[변수])
구성 옵션
from_, to
시작 값, 마지막 값
from이 아닌 from_인 것에 주의하자.
textvariable
값을 저장할 변수
참조
728x90
'Python > Tkinter' 카테고리의 다른 글
[Tkinter] 17. 커맨드 바인딩 Command Binding (0) | 2024.02.21 |
---|---|
[Tkinter] 16. 프로그레스바 Progressbar 위젯 (0) | 2024.02.19 |
[Tkinter] 14. 스케일 Scale 위젯 (0) | 2024.02.16 |
[Tkinter] 13. 텍스트 Text 위젯 (0) | 2024.02.16 |
[Tkinter] 12. 스크롤바 Scrollbar 위젯 (0) | 2024.02.16 |