473,467 Members | 1,964 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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 42467
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John Benson | last post by:
Hi, I'm using Tkinter and would like to know how to replace the red "Tk" logo in the left corner of the title bar of the root window with some other icon. Another question for curiosity's sake:...
2
by: wanwan | last post by:
I need my GUI to open and display a text file. I'm thinking of using a text widget but it looks so complicated in the tkinter manual. question I have is: is there an example anyone can find on...
4
by: ACaunter | last post by:
Hi there, I was wondering if there was a way to change the font color of the text in the title bar... by default the title bar is that dark blue faiding into light blue and it has white text......
4
by: sullivanz.pku | last post by:
Hi all I am using the standard python GUI Tkinter as my program's main interface. Although I know wxPython has some widget to support rich text widget, but I do not have time to shift to wx----...
1
by: dananrg | last post by:
Can you tell I miss Unix? I want to write a Python script that, when launched, will choose a random .sig (from a list of about 30 cool ones I've devised), and store the .sig text in the Windows...
0
by: zeng.hui.stephen | last post by:
I download the demo http://msdn.microsoft.com/msdnmag/issues/02/10/cuttingedge/. I inherite the demo, and write my code. I want to use Hook to monitor C++ Edit change. I use a C# form...
5
by: deacon.sweeney | last post by:
Hi, I've been searching for a .resize()-like function to overload much like can be done for the delete window protocol as follows: toplevel.protocol("WM_DELETE_WINDOW", callback) I realize...
4
by: BartlebyScrivener | last post by:
Using Python on Debian Etch. What is the best way to paste a block of text in at the command prompt. I'm trying something like: Quote = raw_input("Paste quote here: ") Which works great...
4
by: Mudcat | last post by:
I've tried quite a few things to get this correct but have hit a couple of sticking points that I can't figure out. I need to ge the Text box to function like the 'wraplength' option in a Label. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.