Python3 Tkinter fonts not working
You should import font
not fonts
. Also, if the code you posted is actual code, you are neglecting to create a root window before working with fonts. You must create a root window first.
from tkinter import fontimport tkinter as tk...root = tk.Tk()...appHighlightFont = font.Font(family='Helvetica', size=12, weight='bold')font.families()
from tkinter import *from time import sleepwindow = Tk()window.geometry("350x400")window.title("tkinter!")lbl = Label(window, text="this is a lable", size=12)lbl.pack()sleep(1)lbl.configure(text="now it is a big lable", size=48)