Posted to tcl by silas at Sat Nov 05 20:19:10 GMT 2022view pretty

package require Tk
pack [frame .f]
pack [label .f.l -text test]
pack [entry .f.e]
bind <FocusIn> .f {
	puts test
	focus .f.e
}
pack [button .btn -text {Focus entry, please!} -command {focus .f}]