pyface.i_layered_panel module
Interace and mixins for layered panels.
A layered panel contains one or more named layers, with only one layer
visible at any one time (think of a ‘tab’ control minus the tabs!).
-
class pyface.i_layered_panel.ILayeredPanel(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]
Bases: Interface
A Layered panel.
A layered panel contains one or more named layers, with only one layer
visible at any one time (think of a ‘tab’ control minus the tabs!). Each
layer is a toolkit-specific control.
-
add_layer(name, layer)[source]
Adds a layer with the specified name.
All layers are hidden when they are added. Use ‘show_layer’ to make a
layer visible.
-
show_layer(name)[source]
Shows the layer with the specified name.
-
has_layer(name)[source]
Does the panel contain a layer with the specified name?
-
class pyface.i_layered_panel.MLayeredPanel(parent=None, **traits)[source]
Bases: HasTraits
A Layered panel mixin.
A layered panel contains one or more named layers, with only one layer
visible at any one time (think of a ‘tab’ control minus the tabs!). Each
layer is a toolkit-specific control.
-
has_layer(name)[source]
Does the panel contain a layer with the specified name?