Есть такой скрипт:
#!/bin/sh
# calling wish \
exec wish "$0" ${1+"$@"}
set cmakeBinName "<noname>"
proc Get_CMakeBin {} {
set cmakeBinName [ tk_getOpenFile -initialdir / ]
}
label .l -text { CMake bin: }
label .lb -bg white -width 24 -textvar cmakeBinName
button .cmb -text "..." -command "set cmakeBinName \[ tk_getOpenFile -initialdir / \]"
# button .cmb -text "..." -command Get_CMakeBin
grid .l .lb .cmb