GridLayout

Declaration

class enamlnative.widgets.grid_layout.GridLayout(parent=None, **kwargs)[source]

Bases: enamlnative.widgets.view_group.ViewGroup

A layout that places its children in a rectangular grid.

orientation

Should the layout be a column or a row.

alignment_mode

Sets the alignment mode to be used for all of the alignments between the children of this container.

columns

ColumnCount is used only to generate default column/column indices when they are not specified by a component’s layout parameters.

column_order_preserved

When this property is true, GridLayout is forced to place the column boundaries so that their associated grid indices are in ascending order in the view.

rows

RowCount is used only to generate default row/column indices when they are not specified by a component’s layout parameters.

row_order_preserved

When this property is true, GridLayout is forced to place the row boundaries so that their associated grid indices are in ascending order in the view.

use_default_margins

When true, GridLayout allocates default margins around children based on the child’s visual characteristics.

proxy

A reference to the ProxyLabel object.

Android Implementation

class enamlnative.android.android_grid_layout.AndroidGridLayout[source]

Bases: enamlnative.android.android_view_group.AndroidViewGroup, enamlnative.widgets.grid_layout.ProxyGridLayout

An Android implementation of an Enaml ProxyGridLayout.

widget

A reference to the widget created by the proxy.

create_widget()[source]

Create the underlying widget.

No iOS implementation found.