pyface.i_layout_widget module

class pyface.i_layout_widget.ILayoutWidget(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: IWidget, ILayoutItem

Interface for widgets that can participate in layout.

Most widgets implement ILayoutWidget, but widgets like top-level windows, menus, toolbars, etc. do not.

class pyface.i_layout_widget.MLayoutWidget[source]

Bases: HasTraits

A mixin for Widgets that can participate in layouts.

Most widgets implement ILayoutWidget, but widgets like top-level windows, menus, toolbars, etc. do not.

minimum_size = Size

The minimum size that the widget can take.

maximum_size = Size

The maximum size that the widget can take.

stretch = Tuple(Int, Int)

Weight factor used to distribute extra space between widgets.

size_policy = Tuple(SizePolicy, SizePolicy)

How the widget should behave when more space is available.