How to change default font in Tkinter? Last Updated : 24 Jan, 2021 Comments Improve Suggest changes Like Article Like 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: TkDefaultFontTkMenuFontTkFixedFontTkSmallCaptionFont 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 objectThen change font style such as font-family, font-size, and so on. Given below is the proper approach for doing the same. ApproachImport moduleCreate windowCreate the font object using font.nametofont method.Use the configure method on the font objectThen change font style such as font-family, font-size, and so on.Add required elementsExecute 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 Comment More infoAdvertise with us Next Article How to change default font in Tkinter? sanjeev2552 Follow Improve Article Tags : Technical Scripter Python Technical Scripter 2020 Python-tkinter Practice Tags : python Similar Reads How to Change the Tkinter Label Font Size? In Tkinter, labels are used to display text but adjusting their font size can improve readability or match a specific design. Tkinter offers multiple ways to modify a labelâs font size. Letâs explore different methods to achieve this.Using tkFont.Font()tkinter.font.Font() class allows you to define 3 min read How to Change Fonts in matplotlib? Changing fonts in Matplotlib helps customize the appearance of plots, making them more readable and visually appealing. Fonts can be changed for titles, axis labels, legends and other text elements either individually or globally. Letâs explore how to do this efficiently.Using fontnameThis method le 4 min read How to change the Tkinter label text? Prerequisites: Introduction to tkinter Tkinter is a standard GUI (Graphical user interface) package for python. It provides a fast and easy way of creating a GUI application. To create a tkinter application: Importing the module â tkinterCreate the main window (container)Add any number of widgets to 3 min read How to Change the Font Size in Python Shell? In this article, we will see how to Change the Font Size in Python Shell Follow these steps to change font size: Step 1: Open the Python shell Python Shell Step 2: Click on the Options and select Configure IDLE Step 3: In Fonts/Tabs tab set Size value Step 4: Let's select a size value is 16 and clic 1 min read How to set font for Text in Tkinter? Tkinter allows you to customize the appearance of text in various widgets. Customizing the font helps in enhancing the readability and user experience of the application interface. Tkinter offers several ways to set fonts, whether you prefer to define a font once for reuse or specify it for individu 3 min read How To Change The Title Bar In Tkinter? Changing the title bar in Tkinter is a fundamental aspect of customizing your application's window. The title bar typically displays the name of the window and can be modified to reflect the content or functionality of your application. Here, we'll explore three different approaches to change the ti 2 min read How To Print Entry Text Tkinter? Tkinter is a popular GUI library in Python that allows developers to create desktop applications. One common task is retrieving and displaying the text entered by users. In this article, we'll go through the steps to create a simple Tkinter application that prints the text from an Entry widget in Py 4 min read How to Delete Tkinter Text Box's Contents? Prerequisite: Python GUI â tkinterText Widget Python offers multiple options for developing GUI (Graphical User Interface) out of which Tkinter is the most preferred means. It is a standard Python interface to the Tk GUI toolkit shipped with Python. Python with Tkinter is the fastest, most reliable 2 min read How to add custom fonts in Kivy - Python? Prerequisites: Kivy Tutorial Kivy is a platform-independent GUI tool in Python. It can run on Android, IOS, Linux and Windows, etc. This is the only GUI library from python which can independently run on the android device even we can use it on Raspberry pi also. Â It is an open-source Python library 2 min read Like