Re: setting font size in tk window
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: setting font size in tk window

From: Aric Bills <aric.bills@gmail.com>
Date: Sat Mar 18 2006 - 19:40:56 CET

To create a named font:
    font create smallfont -family {Times New Roman} -size 10 -weight
bold

To use your named font in your widget:
    label .mylabel -text "Hi everybody" -font smallfont

To find out which fonts are available (and what to call them in your
code!):
    font families

To specify a font without creating a named font:
    label .mylabel -text "Hi everybody" -font {{Times New Roman} 10
bold}

Does that help some?

Aric
Received on Sun Apr 30 02:39:16 2006