📜  脚本以查看系统上安装了哪些 tkinter 字体 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:36.083000             🧑  作者: Mango

代码示例1
import sys
if sys.version_info.major == 3:
    import tkinter as tk, tkinter.font as tk_font
else:
    import Tkinter as tk, tkFont as tk_font
root = tk.Tk()
print(tk_font.families())
print(tk_font.names())