Since $gg is a changing variable how do I use it in -command?
IOW I want button
"Expert 5" to send the -command {tgid_expert 5}
"Expert 9" to send the -command {tgid_expert 9}
when the button is pressed.
There are 60 buttons in this widget.
--
Best Regards, Keith
http://home.comcast.net/~kilowattradio/
Tired of Google Groups?
http://home.comcast.net/~kilowattradio/usenet.html
The [list] command builds those sorts of script fragments in exactly
the right way:
button $gx.$gg.expert -text "Expert $gg" \
-command [list tgid_expert $gg]
Donal.