enaml.widgets.label
Classes
A simple control for displaying read-only text. |
- class enaml.widgets.label.Label(parent=None, **kwargs)[source]
Bases:
Control
A simple control for displaying read-only text.
- text
The unicode text for the label.
- align
The horizontal alignment of the text in the widget area.
- vertical_align
The vertical alignment of the text in the widget area.
- link_activated
An event emitted when the user clicks a link in the label. The payload will be the link that was clicked.
- hug_width
Labels hug their width weakly by default.
- proxy
A reference to the ProxyLabel object.
- activated
An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.
- background
The background color of the widget.
- destroyed
An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.
- enabled
Whether or not the widget is enabled.
- initialized
An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.
- name
Export the ‘name’ attribute as a declarative member.
- style_class
The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.