Tcl-Tk - Re: a small tk program problem

Posted on Tue Mar 25 14:10:05 2008 by vkon in response to 7451 (See the whole thread of 4)
Re: a small tk program problem
your tcl code do variable substitution at the wrong time. try this:
set aa 0 for {set i 1} {$i < 5} {incr i} { set bt [button .$i -text $i] pack .$i bind $bt <Button-1> " incr aa $bt configure -text \$aa update " }
Direct Responses: 7457 | Write a response