home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!wupost!sdd.hp.com!think.com!rpi!utcsri!skule.ecf!torn!nott!bnrgate!bcars267!scoob
- From: scoob@bnr.ca (Christian Marcotte)
- Subject: RadioButtons variable problem!!!
- Message-ID: <1992Nov19.054911.18804@bnr.ca>
- Sender: news@bnr.ca (usenet)
- Nntp-Posting-Host: cooma
- Organization: Bell-Northern Research, Ontario, Canada
- Date: Thu, 19 Nov 1992 05:49:11 GMT
- Lines: 47
-
-
- I have this strange problem with my radiobuttons:
-
- In my application (modified from the mkRadio demo in tk) I do the
- following:
-
- ...
- 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}"
-
-
- When I test the value of my buttons by adding a call to showVars.tcl (also
- from the tk demo) I can see that my variables are properly set when I press
- the buttons.
-
-
- However, when I press the " Day Selection " button, it invariably passes
- the default values that I had set using "invoke".
-
- I understand that it must have something to do with delaying the evaluation of
- the variable but I'm not sure exactly how to correct this.
-
- Any guru advices...
-
- Thanks
-
- -- scoob
-
-
-
- --
- ---------------------------------------------------------------------------
- Christian Marcotte Bell-Northern Research
- scoob@bnr.ca 3500 Carling Ave
- Telephone: (613) 763-2782 Nepean, Ont., Canada K1Y 4H7
-