Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

finding name/index of checkbutton array in -command

2 views
Skip to first unread message

Kemper

unread,
Aug 30, 2003, 1:14:06 AM8/30/03
to
I have an array of checkbuttons and I need to know which one was clicked
in the -command part of the widget.

forech c { a b c d e f g } {

checkbutton frame($c).checker -text dummy -command {

# which button am I?

}
}

Thanks in advanced

Kregg


Derk Gwen

unread,
Aug 30, 2003, 3:42:17 AM8/30/03
to
"Kemper" <kem...@comcast.net> wrote:
# I have an array of checkbuttons and I need to know which one was clicked
# in the -command part of the widget.
#
# forech c { a b c d e f g } {
#
# checkbutton frame($c).checker -text dummy -command {
#
# # which button am I?
#
# }
# }

proc lambdaProc1 {button} {...}

checkbutton frame($c).checker -text dummy -command [list lambdaProc1 $c]

--
Derk Gwen http://derkgwen.250free.com/html/index.html
The whole world's against us.

0 new messages