Answer:
See explaination for program code
Step-by-step explanation:
from tkinter import * from tkinter import font window = Tk() window.title("Font-Family") window.geometry("450x450") # Prints all the font families available with the system print(font.families()) # Label 1 for Courier font family font_label1 = Label(window, text="COURIER", fg="black", font="Courier") font_label1.config(anchor=CENTER) font_label1.pack() # Label 2 for Helvetica font family font_label2 = Label(window, text="HELVETICA", fg="black", font="Helvetica") font_label2.config(anchor=CENTER) font_label2.pack() # Label 3 for Times font family font_label3 = Label(window, text="TIMES", fg="black", font="Times") font_label3.config(anchor=CENTER) font_label3.pack() window.mainloop()
See attachment for sample output and screenshot