14 lines
354 B
Python
14 lines
354 B
Python
import tkinter as tk
|
|
from tkinter import font
|
|
|
|
root = tk.Tk()
|
|
# Tworzymy okno z listą, żeby wygodnie przewijać czcionki
|
|
listbox = tk.Listbox(root, width=50, height=20)
|
|
listbox.pack(padx=10, pady=10)
|
|
|
|
# Sortujemy i dodajemy wszystkie dostępne nazwy czcionek
|
|
for f in sorted(font.families()):
|
|
listbox.insert(tk.END, f)
|
|
print(f)
|
|
|
|
root.mainloop() |