I have a collection of button controls
Instead of binding in this way,
bind .Btn1 <ButtonPress> {display}
bind .Btn2 <ButtonPress> {display}
bind .Btn3 <ButtonPress> {display}
All the bindings should map to the same procedure.
I tried in this way.
for { set x 1} { $x <= $counter} {incr x} {
bind .Btn$x <ButtonPress> { display } }
There is no error.
But it is not responding...
Any ideas would be helpful.
Thanks
Instead of binding in this way,
bind .Btn1 <ButtonPress> {display}
bind .Btn2 <ButtonPress> {display}
bind .Btn3 <ButtonPress> {display}
All the bindings should map to the same procedure.
I tried in this way.
for { set x 1} { $x <= $counter} {incr x} {
bind .Btn$x <ButtonPress> { display } }
There is no error.
But it is not responding...
Any ideas would be helpful.
Thanks