Re: Tile widgets: using "cget"



Adrian Davis wrote:
>
>For example: I'd like to be able to create a label which has the same
>font as an existing (themed) label, but with either or both of the
>underline/bold attributes set and possibly in a different size. What
>would be the recommended Tile method to achieve this?

The Tile widgets uniformly use TIP#145(-inspired) named fonts.
First check if one of the following predefined symbolic font
names are appropriate for your purposes. If so, just use that:

# TkDefaultFont -- default for GUI items not otherwise specified
# TkTextFont -- font for user text (entry, listbox, others).
# TkHeadingFont -- headings (column headings, etc)
# TkCaptionFont -- dialog captions (primary text in alert dialogs, etc.)
# TkTooltipFont -- font to use for tooltip windows


If not, use [font configure TkDefaultFont] (or TkTextFont, or
whichever one you want to use as a base font) to extract the
default -family, -size, and -weight; modify to suit; and create
a new font with those attributes.

(See also library/fonts.tcl for more details).


--Joe English
.



Relevant Pages

  • Re: Label not display correctly
    ... > Started in safe mode and the label is displaying correctly in safe mode, ... >it appears it is a driver problem. ... >>Font: Times New Roman ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Can I change the font size in MsgBox
    ... My version of Excel does not mention "userform" in the help file, but I have seen the word before. ... I couldn't find any way to change the font on either a lable or an edit box. ... "Nick Hodge" wrote in message ... Rather than using a built in MsgBox you could build a userform with a label and commandbuttons. ...
    (microsoft.public.excel)
  • Re: Excel chart help!!!!!! Please!!!!
    ... and drivers, screen zoom, and the planets' orbits. ... consolation is that usually the entire label prints fine. ... Short of reinstalling video drivers and mucking with monitor settings ... If I change the font size of the ...
    (microsoft.public.excel.misc)
  • Re: Y-Axis Label
    ... New monitor? ... factor, font and font size, and perhaps other undefinables. ... It has occurred since at least Excel ... the label prints fine (nothing ...
    (microsoft.public.excel.charting)
  • Re: Is it possible to change the size of a check box?
    ... Set it's Font to WingDings ... Place this label where you wish to see the check mark. ... If you want a CheckBox field label then just add another unbound label ...
    (microsoft.public.access.forms)