# How to change the title bar in Tkinter?

TkinterServer Side ProgrammingProgramming

Tkinter initially sets a default title bar for every application. We can update or replace the Title Bar of the Tkinter application by configuring the title("Enter any Title") method. For a particular application, let us see how we can change the title of a Tkinter application that calculates the square of a number.

## Example

#Import the required Libraries
from tkinter import *
from tkinter import ttk
import math

#Create an instance of Tkinter frame
win = Tk()

#Set the geometry of tkinter frame
win.geometry("750x270")

#Set the Title of Tkinter window
win.title("Square Calculator")

def find_square():
no= int(entry.get())
Label(win, text=no*no).pack()

#Create an entry widget to accept user input
entry= Entry(win, width=40)
win.mainloop()