Class Labeltype

(back to index)

Label type constants and functions


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.

Symbol Labels

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:

doctool generated at Sun Aug 12 22:23:18 2001