How can I change the default font size in tk?

root = TkRoot.new do
font {Tahoma 10 normal}
end

can’t work.

I found TkOptionDB.add( “*font”, “{Lucida Sans Unicode} 10” ) works£¬but
Tk::Tile didn’t change.

“Wang Dong” [email protected] дÈëÏûÏ¢ÐÂÎÅ:[email protected]

I know how:
TkFont.configure(‘TkDefaultFont’, ‘family’ => ‘Lucida Sans Unicode’,
‘size’
=> ‘10’)

“Wang Dong” [email protected] дÈëÏûÏ¢ÐÂÎÅ:[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs