[Tutor] Re: Tutor digest, Vol 1 #315 - 3 msgs

Robert rhicks@rma.edu
Mon, 22 May 2000 16:29:19 -0400


You can do:

In the import section:

root.title('What-ever-the-title-is')

Or as a class:

self.root = master
self.root.title("What-ever-your-title-is")

Both of these were snipped out of the Tkinter programming book by Grayson
and they both work.

Bob






| --__--__--
|
| Message: 3
| From: alan.gauld@bt.com
| To: martinpozzi@yahoo.com, tutor@python.org
| Subject: RE: [Tutor] Window titles in Tkinter
| Date: Mon, 22 May 2000 11:35:20 +0100
|
| > which reads "tk". I ran Alan's 'case of study' and though he
| > put "Grammar checker" as a title to the window, it just
| > shows up as "tk".
|
| Yes... If anyone can answer that I'd be interested.
| Oddly enough I was trying to get it working at the
| weekend and wound up just deleting that line from
| the code in my book- cop out!!!
|
| It does seem to work on Linux but not in Windows.
| It would be nice to set the window title properly
| within Tkinter.
|
| Alan G.
|
|
|
| --__--__--
|
| _______________________________________________
| Tutor maillist  -  Tutor@python.org
| http://www.python.org/mailman/listinfo/tutor
|
|
| End of Tutor Digest_______________________________________________
| Tutor maillist  -  Tutor@python.org
| http://www.python.org/mailman/listinfo/tutor