home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.tcl
- Path: sparky!uunet!paladin.american.edu!darwin.sura.net!tulane!cpu.com!cpu.com!GWLESTER
- From: gwlester@cpu.com (Gerald W. Lester)
- Subject: Re: dynamically changing text on labels
- Nntp-Posting-Host: captainhook.cpu.com
- References: <1992Dec21.190502.23117@choreo.ca>
- Sender: usenet@cpu.com (Usenet administrator)
- Organization: Computerized Processes Unlimited, Metairie, LA, (504)-889-2784
- Date: Tue, 22 Dec 1992 14:39:48 GMT
- Message-ID: <1992Dec22.143948.18360@cpu.com>
- Reply-To: gwlester@cpu.com
- Lines: 19
-
- In article <1992Dec21.190502.23117@choreo.ca>, news@choreo.ca (Choreo NetNews Administration Account(Ottawa)) writes:
- >I have a window set up with a number of label widgets for presenting info to
- >the user which they cannot change. If they press a push button, I would
- >like to get the labels updated. The support code is there to reset some
- >stuff, but how can I change the labels? Using the label command only gets
- >me the expected error that the window exists in the parent.
- >
- >Any suggestions or other ideas would be helpful.
- >
- >Thanks, and Happy Holidays to all.
-
- If you create a label with the command:
-
- label .my_label -text foo_bar
-
- to change the label to snafu all you do is:
-
- .my_label configure -text snafu
-
-