Page Contents

This Page

FlowArea

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

Bases: enaml.widgets.constraints_widget.ConstraintsWidget

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

direction = None

The flow direction of the layout.

align = None

The alignment of a line of items within the layout.

horizontal_spacing = None

The amount of horizontal space to place between items.

vertical_spacing = None

The amount of vertical space to place between items.

margins = None

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

flow_items = None

A read only property which returns the area’s flow items.

hug_width = None

A FlowArea expands freely in width and height by default.

snapshot()[source]

Returns the snapshot dict for the FlowArea.

bind()[source]

Bind the change handler for the FlowItem.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_flow_area.QtFlowArea

class enaml.qt.qt_flow_area.QtFlowArea(object_id, parent, session)[source]

Bases: enaml.qt.qt_constraints_widget.QtConstraintsWidget

A Qt implementation of an Enaml FlowArea.

create_widget(parent, tree)[source]

Create the underlying widget.

create(tree)[source]

Create and initialize the underlying control.

init_layout()[source]

Initialize the layout for the underlying control.

child_removed(child)[source]

Handle the child removed event for a QtMdiArea.

child_added(child)[source]

Handle the child added event for a QtMdiArea.

on_action_set_direction(content)[source]

Handle the ‘set_direction’ action from the Enaml widget.

on_action_set_align(content)[source]

Handle the ‘set_align’ action from the Enaml widget.

on_action_set_horizontal_spacing(content)[source]

Handle the ‘set_horizontal_spacing’ action from the Enaml widget.

on_action_set_vertical_spacing(content)[source]

Handle the ‘set_vertical_spacing’ action from the Enaml widget.

on_action_set_margins(content)[source]

Handle the ‘set_margins’ action from the Enaml widget.

set_direction(direction)[source]

Set the direction for the underlying control.

set_align(align)[source]

Set the alignment for the underlying control.

set_horizontal_spacing(spacing)[source]

Set the horizontal spacing of the underyling control.

set_vertical_spacing(spacing)[source]

Set the vertical spacing of the underlying control.

set_margins(margins)[source]

Set the margins of the underlying control.

replace_constraints(old_cns, new_cns)[source]

A reimplemented QtConstraintsWidget layout method.

Constraints layout may not cross the boundary of a ScrollArea, so this method is no-op which stops the layout propagation.

Wx