Tcl & Tk/팁 (Tip)
콤보박스 위젯의 팝업 리스트 자동으로 펼치기
티클러
2025. 3. 24. 10:27
콤보박스 위젯의 팝업 리스트를 자동으로 펼치는 방법입니다.
ttk::combobox
set cb [ttk::combobox .cb -values [list 1 2 3]]
pack $cb
proc expand {} {
ttk::combobox::Post .cb
}
pack [button .b -text "expand" -command expand]
BWidget::ComboBox
package require BWidget
set cb [ComboBox .cb2 -values [list 1 2 3]]
pack $cb
proc expand {} {
ArrowButton::invoke .cb2.a
}
pack [button .b -text "expand" -command expand]