在程序的开头加入以下代码为所有 Tk 部件设置字体:
option add *Font {{fangsong ti} 12}
为使用 Tile 部件的程序设置字体:
style configure . -font {{fangsong ti} 12}
option add *Font {{fangsong ti} 12}
为使用 Tile 部件的程序设置字体:
style configure . -font {{fangsong ti} 12}
|
Tcl/Tk
Tcl/Tk、Linux、C/C++、Golang、Reversed
|
|
|