how to change the text in the title bar of the Tkinter windows
Beeyah
dbickett at gmail.com
Tue Aug 17 23:04:16 EDT 2004
alikakakhel3 at hotmail.com (Ali) wrote in message news:<8f17f4bc.0408171417.456199d1 at posting.google.com>...
> 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()
Yes, that's correct.
More information about the Python-list
mailing list