Tcl & Tk/확장 패키지 (Extension Package)
searchentry
티클러
2025. 8. 18. 09:08
홈페이지: https://github.com/ch32n/searchentry
ttk::entry를 확장하여 내장된 검색 아이콘을 제공하는 Tcl/Tk 위젯으로, 마우스 오버 및 눌림 상태를 지원하며, 선택적으로 클릭 시 동작을 지정할 수 있습니다. 아이콘은 tk 스케일링에 따라 자동으로 크기가 조절됩니다. 왼쪽 마우스 버튼으로 아이콘을 클릭하거나 Return 키를 누르면 가상 이벤트 << searchPressed >>가 발생합니다.
Tcl/Tk widget that extends ttk::entry with a built-in search icon, supporting hover and pressed states, and optional click actions. Icon automatically scales based on tk scaling. Clicking the icon with mouse button 1 or pressing the Return key generates the virtual event <<searchPressed>>.
package require Tk
package require searchentry
# Create entry widget
ttk::searchentry .search
grid .search -row 0 -column 0
bind .search <<searchPressed>> {puts "search pressed on %W"}