- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Difference between title() and wm_title() methods in Tkinter class
Tkinter has a definite class hierarchy which contains many functions and built-in methods. As we create applications, we use these functions to build the structure of components.The wm class stands for "window manager" that is a mixin class that provides many builtin functions and methods.
The method wm_title() is used to change the title of the tkinter window. However, alternatively, we can also use the win.title() method. Generally, wm class provides many methods that let us communicate with the window services.
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") win.wm_title("This is the Title") # Add A label widget Label(win, text="Welcome to TutorialsPoint✨ \n" "You are browsing the best resource for Online Education.", font=('Aerial 18 italic')).place(x=50, y=150) win.mainloop()
Output
Run the above code to display a window that will contain some Label text widget.
- Related Articles
- Difference between Job Title and Occupation
- Bootstrap panel-title class
- How to Change Tkinter Frame Title?
- card-title class in Bootstrap 4
- How to change the title bar in Tkinter?
- How to use Tkinter in python to edit the title bar?
- How to create a resizable Windows without title bar in Tkinter?
- How to remove the icon from the title bar in Tkinter?
- How do I change the Tkinter default title in the OS bar?
- What is the difference between focus and focus_set methods in Tkinter?
- Increase the distance between the title and the plot in Matplotlib
- How to select element with specific class and title attribute using jQuery?
- Changing program title in SAP
- HTML DOM Title Object
- HTML DOM title Property

Advertisements