Bases: enaml.widgets.widget.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.
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.
The alignment of this item in the direction orthogonal to the layout flow.
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.
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.
A read only property which returns the items’s flow widget.
alias of __NoInterface__
Bases: enaml.qt.qt_widget.QtWidget
A Qt implementation of an Enaml FlowItem.
Find and return the flow widget child for this widget.
Returns: | result (QWidget or None) – The flow widget defined for this widget, or None if one is not defined. |
---|
Handle the ‘set_preferred_size’ action from the Enaml widget.