enaml.widgets.flow_area

Classes

FlowArea

A widget which lays out its children in flowing manner, wrapping around at the end of the available space.

class enaml.widgets.flow_area.FlowArea(parent=None, **kwargs)[source]

Bases: Frame

A widget which lays out its children in flowing manner, wrapping around at the end of the available space.

direction

The flow direction of the layout.

align

The alignment of a line of items within the layout.

horizontal_spacing

The amount of horizontal space to place between items.

vertical_spacing

The amount of vertical space to place between items.

margins

The margins to use around the outside of the flow area.

hug_width

A FlowArea expands freely in width and height by default.

hug_height

How strongly a widget hugs it’s height hint. This is equivalent to the constraint:

(height == hint) | hug_height
proxy

A reference to the ProxyFlowArea object.

flow_items()[source]

Get the flow item children defined on this area.

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.

border

The border to apply to the frame. This may not be supported by all toolkit backends.

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.