enaml.widgets.mdi_area
Classes
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:
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.
- hug_height
How strongly a widget hugs it’s height hint. This is equivalent to the constraint:
(height == hint) | hug_height
- resist_width
An MdiArea resists clipping only weakly by default.
- resist_height
How strongly a widget resists clipping its height hint. This is equivalent to the constraint:
(height >= hint) | resist_height
- proxy
A reference to the ProxyMdiArea object.
- 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.
- 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.
- 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.