- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
How do I change the Tkinter default title in the OS bar?
The Tkinter application window has many components: window size, title, navbar, menubar-component, etc. To configure the window attributes or properties, we can use the Window Manager toolkit defined in Tcl/Tk.
To run the Window Manager attributes, use the command 'wm' with other keywords. The title of the window can be configured by using wm_title("title") or title("title") method.
Example
# Import the required libraries from tkinter import * # Create an instance of tkinter frame or window win=Tk() # Set the size of the window win.geometry("700x350") # Change the title of the window win.wm_title("My Window") Label(win, text="Hello, Welcome to Tutorialspoint...", font=('Calibri 24')).pack() win.mainloop()
Output
If we run the above code, it will display a window with a title "My Window".
- Related Articles
- How to change the title bar in Tkinter?
- How to remove the icon from the title bar in Tkinter?
- How to use Tkinter in python to edit the title bar?
- How to Change Tkinter Frame Title?
- How do I change the background of a Frame in Tkinter?
- How do I change button size in Python Tkinter?
- How do I change the overall theme of a tkinter application?
- How to create a resizable Windows without title bar in Tkinter?
- How to remove the title bar in a Tkinter window without using overrideredirect() method?
- Python Tkinter – How do I change the text size in a label widget?
- How do I adjust (offset) the colorbar title in Matplotlib?
- How can I change the text of the Tkinter Listbox item?
- How can I change the default sort order of MySQL tables?
- How do I handle the window close event in Tkinter?
- How do you change the default font color for all text in Matplotlib?

Advertisements