How to change default font in Tkinter? Read Courses Practice Improve Improve Improve Like Article Like Save Article Save Report issue Report Prerequisites: Tkinter Tkinter provides a variety of fonts for different things i.e Heading, Caption, Text, Menu, etc. But the good thing is we can override these fonts using tkinter.font module. Some fonts provided by the Tkinter are: TkDefaultFont TkMenuFont TkFixedFont TkSmallCaptionFont and so on. In this article, we are going to change the default font. In order to do this, we need to override/ change the configuration of TkDefaultFont. Changing/ overriding the default font is very easy and can be done in the listed way: Create the font object using font.nametofont method. Use the configure method on the font object Then change font style such as font-family, font-size, and so on. Given below is the proper approach for doing the same. Approach Import module Create window Create the font object using font.nametofont method. Use the configure method on the font object Then change font style such as font-family, font-size, and so on. Add required elements Execute code Program: Python3 # Import tkinter.Tk and widgets from tkinter import Tk, font from tkinter.ttk import Button, Label class App: def __init__(self, master: Tk) -> None: self.master = master # Creating a Font object of "TkDefaultFont" self.defaultFont = font.nametofont("TkDefaultFont") # Overriding default-font with custom settings # i.e changing font-family, size and weight self.defaultFont.configure(family="Segoe Script", size=19, weight=font.BOLD) # Label widget self.label = Label(self.master, text="I'm Label") self.label.pack() # Button widget self.btn = Button(self.master, text="I'm Button") self.btn.pack() if __name__ == "__main__": # Top level widget root = Tk() # Setting window dimensions root.geometry("300x150") # Setting app title root.title("Changing Default Font") print(font.names()) app = App(root) # Mainloop to run application # infinitely root.mainloop() Output: Before changing configuration After changing configuration Don't miss your chance to ride the wave of the data revolution! Every industry is scaling new heights by tapping into the power of data. Sharpen your skills and become a part of the hottest trend in the 21st century. Dive into the future of technology - explore the Complete Machine Learning and Data Science Program by GeeksforGeeks and stay ahead of the curve. Last Updated : 24 Jan, 2021 Like Article Save Article Previous How to update a plot in Matplotlib? Next Count even sum pairs possible by selecting two integers from two given ranges respectively Share your thoughts in the comments Add Your Comment Please Login to comment...