pyface.i_layout_item module

pyface.i_layout_item.DEFAULT_SIZE = -1

Value that indicates the default size values should be used.

pyface.i_layout_item.Size = Tuple(Int(DEFAULT_SIZE), Int(DEFAULT_SIZE))

Trait for sizes of widgets.

pyface.i_layout_item.SizePolicy = Enum("default", "fixed", "preferred", "expand")

Trait for size policy values.

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

Bases: traits.has_traits.Interface

An item that can participate in layout.

minimum_size = Size

The minimum size that the item can take.

maximum_size = Size

The maximum size that the item can take.

stretch = Tuple(Int, Int)

Weight factor used to distribute extra space between widgets.

size_policy = Tuple(SizePolicy, SizePolicy)

How the item should behave when more space is available.