Class Labeltype
(back to index)
Label type constants and functions
Description
Labels may be drawn in a number of different styles. By setting a
widget's labeltype property to one of the following
constants, you control how the label is rendered.
- Labeltype.normal - draws the text.
- Labeltype.none - does nothing
- Labeltype.symbol - draws "@xyz" labels, see "Symbol Labels"
- Labeltype.shadow - draws a drop shadow under the text
- Labeltype.engraved - draws edges as though the text is
engraved
- Labeltype.embossed - draws edges as thought the text is
raised
The Labeltype.symbol label type uses the label
string property to look up a small drawing procedure in a hash table. For
historical reasons the string always starts with '@'; if it starts with
something else (or the symbol is not found) the label is drawn
normally:
The @ sign may be followed by the following optional "formatting"
characters, in this order:
- '#' forces square scaling, rather than distortion to the widget's
shape.
- +[1-9] or -[1-9] tweaks the scaling a little bigger or smaller.
- [1-9] - rotates by a multiple of 45 degrees. '6' does nothing,
the others point in the direction of that key on a numeric keypad.
doctool generated at Sun Aug 12 22:23:18 2001