pyface.i_split_widget module

Mix-in class for split widgets.

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

Bases: traits.has_traits.Interface

Mix-in class for split widgets.

A split widget is one that is split in two either horizontally or vertically.

direction = Orientation()

Splitting vertically means there will be a left hand panel and a right hand panel, splitting horizontally means there will be a top panel and a bottom panel.

ratio = Float(0.5)

The ratio of the size of the left/top pane to the right/bottom pane.

lhs = Callable

An optional callable that provides the left hand/top panel.

rhs = Callable

An optional callable that provides the right hand/bottom panel.

class pyface.i_split_widget.MSplitWidget[source]

Bases: traits.has_traits.HasTraits

The mixin class that contains common code for toolkit specific implementations of the ISplitWidget interface.

direction = Orientation()

Splitting vertically means there will be a left hand panel and a right hand panel, splitting horizontally means there will be a top panel and a bottom panel.

ratio = Float(0.5)

The ratio of the size of the left/top pane to the right/bottom pane.

lhs = Callable

An optional callable that provides the left hand/top panel.

rhs = Callable

An optional callable that provides the right hand/bottom panel.