home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / tcl / 2435 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.4 KB  |  46 lines

  1. Newsgroups: comp.lang.tcl
  2. Path: sparky!uunet!spool.mu.edu!uwm.edu!linac!att!cbnewsm!gah
  3. From: gah@att.com (George A. Howlett)
  4. Subject: Re: how do I get the name of my interpreter?
  5. Reply-To: george.howlett@att.com
  6. Organization: AT&T Bell Laboratories
  7. Date: Thu, 21 Jan 1993 14:58:07 GMT
  8. Message-ID: <1993Jan21.145807.23197@cbnewsm.cb.att.com>
  9. X-Newsreader: TIN [version 1.1 PL8]
  10. References: <ASAH.93Jan17020230@tyranny.cs.Berkeley.EDU>
  11. Sender: news@cbnewsm.cb.att.com (NetNews Administrator)
  12. Nntp-Posting-Host: grenache.cnet.att.com
  13. Lines: 31
  14.  
  15. Adam Sah (asah@cs.Berkeley.EDU) wrote:
  16.  
  17. : I may be just plain ol' retarded, but I can't seem to find the name of my
  18. :   own interpreter.  "Duh, just look to the left of the colon!"  Seriously,
  19. :   is it stored in a variable somewhere?  Is it returned from an 'info'
  20. :   command? 
  21.  
  22. : Any help is appreciated.
  23.  
  24. : --
  25. : Thanks again,
  26. : -A.Sah'93
  27.  
  28. :  ...Adam Sah...asah@cs.Berkeley.EDU...stuck in hell, I mean graduate school...
  29.     On the first pass through the manuals, I couldn't find it either. 
  30.     What you want is the following command:
  31.  
  32.         winfo name .
  33.  
  34.     It took another person to point this option out to me.  The 
  35.     following is from "winfo" manual page.
  36.  
  37.           winfo name window
  38.                Returns window's name (i.e. its name within its parent,
  39.                as  opposed  to its full path name).  The command winfo  |
  40.                name . will return the name of the application.
  41.  
  42.  
  43.     
  44.     --gah
  45.  
  46.