469,330 Members | 1,375 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,330 developers. It's quick & easy.

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

Ali
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.
Jul 18 '05 #1
5 41980
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/tk...tion/index.htm

HTH
--
- Eric Brunel <eric (underscore) brunel (at) despammed (dot) com> -
PragmaDev : Real Time Software Development Tools - http://www.pragmadev.com

Jul 18 '05 #2
Ali
Eric Brunel <er*********@despammed.com> wrote in message news:<cf**********@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/tk...tion/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()
Jul 18 '05 #3
On Tue, 17 Aug 2004 15:17:30 -0700, Ali wrote:
Um.... is this right? It is supposed to show a window with the
titlebar showing The Title.


Did it work when you tried it? That is the answer to your question. (Why
do you want to wait hours or days for some stranger to tell you what the
copy of Python sitting in front of you will do with 4 lines of code?)

Jul 18 '05 #4
al**********@hotmail.com (Ali) wrote in message news:<8f**************************@posting.google. com>...
Eric Brunel <er*********@despammed.com> wrote in message news:<cf**********@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/tk...tion/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.
Jul 18 '05 #5
Ali
Thank you
Jul 18 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by wanwan | last post: by
4 posts views Thread by ACaunter | last post: by
4 posts views Thread by sullivanz.pku | last post: by
reply views Thread by zeng.hui.stephen | last post: by
5 posts views Thread by deacon.sweeney | last post: by
4 posts views Thread by BartlebyScrivener | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by Purva khokhar | last post: by
reply views Thread by haryvincent176 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.