home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / tcl / 2206 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.2 KB  |  33 lines

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