📜  如何在 tkinter 中更改字体 - Python 代码示例

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

代码示例1
import tkinter.font as font

#create Font object
myFont = font.Font(family='Helvetica')

button = Button(parent, font=myFont)
#or
button = Button(parent)
button['font'] = myFont