Posted on 2008-03-25 12:10:05-07 by vkon in response to 7451
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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.