Posted on 2008-03-26 05:19:32-07 by dota in response to 7453
Re: a small tk program problem
thanks vkon, this way works well and i found the another way also work:
#!/usr/bin/wish set aa 0 for {set i 1} {$i < 5} {incr i} { set bt [button .$i -text $i] bind $bt <Button-1> { incr aa %W configure -text $aa update } }
what's the difference between "" and {} used in bind command?
Direct Responses: 7459 | 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.