Class Align
(back to index)
Alignment constants and functions
Description
A widget's align property positions the label relative to
the widget. Align defines constants to describe these
available positionings. Most can be added together such as
Align.top + Align.left.
- Align.center - center the label in the widget.
- Align.top - align the label at the top of the widget.
- Align.bottom - align the label at the bottom of the
widget.
- Align.left - align the label to the left of the widget.
- Align.right - align the label to the right of the
widget.
- Align.inside - align the label inside the widget.
- Align.clip - clip the label to the widget's bounding
box.
- Align.wrap - wrap the label text as needed.
top_left, left_top, top_right, right_top, bottom_left,
left_bottom, bottom_right, right_bottom are provided as
shortcuts.
doctool generated at Sun Aug 12 22:23:18 2001