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:
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, either as a toolkit widget or an IWidget.
- rhs = Callable¶
An optional callable that provides the right hand/bottom panel, either as a toolkit widget or an IWidget.
- class pyface.i_split_widget.MSplitWidget[source]¶
Bases:
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, either as a toolkit widget or an IWidget.
- rhs = Callable¶
An optional callable that provides the right hand/bottom panel, either as a toolkit widget or an IWidget.