how to change the text in the title bar of the Tkinter windows

Ali alikakakhel3 at hotmail.com
Wed Aug 18 00:17:30 CEST 2004


Eric Brunel <eric_brunel at despammed.com> wrote in message news:<cfpous$kcr$1 at news-reader5.wanadoo.fr>...
> Ali wrote:
> > When I open a window using the Tkinter GUI thing the title bar always
> > says "Tk". I would like to know how to change this. I would also like
> > to know how to cjange it on any other popup windows I may have. Please
> > help.
> 
> Just use the 'title' method on your windows. See paragraph 45 in 
> http://www.pythonware.com/library/tkinter/introduction/index.htm
> 
> HTH

I looked at the website but I did not understand. 

Um.... is this right? It is supposed to show a window with the
titlebar showing The Title.

from Tkinter import *

root = Tk()

root.title("The Title")

root.mainloop()



More information about the Python-list mailing list