|
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?
|