enaml.widgets.separator
Classes
A widget which draws a horizontal or vertical separator line. |
- class enaml.widgets.separator.Separator(parent=None, **kwargs)[source]
Bases:
Control
A widget which draws a horizontal or vertical separator line.
- orientation
The orientation of the separator line.
- line_style
The line style for the separator.
- line_width
The thickness of the outer separator line.
- midline_width
The thickness of the inner separator line. This only has an effect for the ‘sunken’ and ‘raised’ line styles.
- auto_hug
Whether or not to automatically adjust the ‘hug_width’ and ‘hug_height’ values based on the value of ‘orientation’.
- proxy
A reference to the ProxySeparator 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.
- hug_height
How strongly a widget hugs it’s height hint. This is equivalent to the constraint:
(height == hint) | hug_height
- hug_width
How strongly a widget hugs it’s width hint. This is equivalent to the constraint:
(width == hint) | hug_width
- 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.