enaml.widgets.flow_item
Classes
A widget which can be used as an item in a FlowArea. |
- class enaml.widgets.flow_item.FlowItem(parent=None, **kwargs)[source]
Bases:
Widget
A widget which can be used as an item in a FlowArea.
A FlowItem is a widget which can be used as a child of a FlowArea widget. It can have at most a single child widget which is an instance of Container.
- preferred_size
The preferred size of this flow item. This size will be used as the size of the item in the layout, bounded to the computed min and max size. A size of (-1, -1) indicates to use the widget’s size hint as the preferred size.
- align
The alignment of this item in the direction orthogonal to the layout flow.
- stretch
The stretch factor for this item in the flow direction, relative to other items in the same line. The default is zero which means that the item will not expand in the direction orthogonal to the layout flow.
- ortho_stretch
The stretch factor for this item in the orthogonal direction relative to other items in the layout. The default is zero which means that the item will not expand in the direction orthogonal to the layout flow.
- proxy
A reference to the ProxyFlowItem object.
- flow_widget()[source]
Get the flow widget defined on this flow item.
The last Container defined on the item is the flow widget.
- 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.