enaml.widgets.mdi_area

Classes

MdiArea

A widget which acts as a virtual window manager for other top level widget.

class enaml.widgets.mdi_area.MdiArea(parent=None, **kwargs)[source]

Bases: enaml.widgets.constraints_widget.ConstraintsWidget

A widget which acts as a virtual window manager for other top level widget.

An MdiArea can be used to provide an area within an application that can display other widgets in their own independent windows. Children of an MdiArea should be defined as instances of MdiWindow.

hug_width

An MdiArea expands freely in width and height by default.

resist_width

An MdiArea resists clipping only weakly by default.

proxy

A reference to the ProxyMdiArea object.

mdi_windows()[source]

Get the mdi windows defined for the area.

tile_mdi_windows()[source]

Tile the mdi windows of this area.

Notes

For the time being the ordering is left to the backend. In the future, a way to influence it may be added.

cascade_mdi_windows()[source]

Cascade the mdi windows of this area.

Notes

For the time being the ordering is left to the backend. In the future, a way to influence it may be added.

child_added(child)[source]

Ensure that added children are visible if they are supposed to.