home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!cs.utexas.edu!hermes.chpc.utexas.edu!news.utdallas.edu!corpgate!bnrgate!bcars267!scoob
- From: scoob@bnr.ca (Christian Marcotte)
- Subject: Re: RadioButtons variable problem!!!
- Message-ID: <1992Nov21.042735.13843@bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: cooma
- Organization: Bell-Northern Research, Ontario, Canada
- References: <1992Nov19.054911.18804@bnr.ca>
- Date: Sat, 21 Nov 1992 04:27:35 GMT
- Lines: 37
-
-
- I found the problem with my radio buttons (funny that no one replied on it...)
-
-
- > ...
- > radiobutton .frame.Months.$month -text $month -variable month \
- > -relief flat -value $month
- > ...
- >
- >Later I set the default to the current month:
- >
- > .frame.Months.$currentMonth invoke
- >
- >And finally I have a button that will call another command with
- >the values collected from the radio buttons selections.
- >
- > button .cmdBar.day_select -text " Day Selection " \
- > -command "day_selection {$base_dir/$year/$typeOfAsset/$month \
- > $typeOfAsset $month $year}"
-
- I go it to work by modifying the last two lines:
-
- -command {day_selection $base_dir/$year/$typeOfAsset/$month \
- ^^^ $typeOfAsset $month $year}
- ^^^^^ ^^^
- ^^^^^
-
- I removed the inner braces and replaced the outer double quotes with braces...
-
- -- Scoob
-
-
- --
- ---------------------------------------------------------------------------
- Christian Marcotte Bell-Northern Research
- scoob@bnr.ca 3500 Carling Ave
- Telephone: (613) 763-2782 Nepean, Ont., Canada K1Y 4H7
-