我有一个生成许多表单的Tcl/Tk应用程序,希望能够从中心位置配置默认的小部件字体,而无需使用
-font
开关来配置每个小部件。#!<path>/wish
button .hello -text "Hello, World!" -command { exit }
pack .hello
puts "--- i would like to set this thing: [.hello configure -font] --- "