set defaulf font size in tkinter code example
Example 1: how to change the font of a label in tkinter
#How to change the font of a label in Tkinter
#Import
from tkinter import *
#Screen
window = Tk()
window.title("New Window")
window.geometry("300x250")
Label(window, text = "This is my new project in python!", font = ("Bahnschrift", 14)).pack()
#-------------------------------------------------------------------------------------------
#'font' tells python that we are going to do something with the font
#-------------------------------------------------------------------------------------------
#'()' are needed becuase that is just how python works
#-------------------------------------------------------------------------------------------
#'"___"' put your font name in the quotes
#-------------------------------------------------------------------------------------------
#10 put vyour fontsize after adding a comma after the font name
#-------------------------------------------------------------------------------------------
Example 2: set window size tkinter
# Change window_name to the name of the window object, i.e. root
window_name.geometry("500x500")
# To ensure widgets resize:
widget_name.pack(fill="both", expand=True)
Example 3: set label text size tkinter
label.config(font=("Courier", 44))