GUI and Desktop Modules
tkinter.font
Represents named Tk fonts with configurable family, size, weight and slant. Updating a named font can affect widgets that reference it. Font metrics depend on available fonts and display configuration. The example inspects style constants, not actual font rendering.
Formal Syntax & Structure
python syntaxpython
import tkinter.fontReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from tkinter import fontprint(font.BOLD, font.ITALIC)