Inherits from
- Widget: enthought.pyface.widget.Widget
Attributes
- current_layer
The toolkit-specific control of the currently displayed layer.
current_layer = Any
- current_layer_name
The name of the currently displayed layer.
current_layer_name = Str
- min_height
min_height = Int(0)
- min_width
The minimum for the panel, which is the maximum of the minimum sizes of the layers
min_width = Int(0)
- STYLE
The default style.
STYLE = wx.CLIP_CHILDREN
Method summary
- __init__(self, parent, **traits)
- add_layer(self, name, layer)
- has_layer(self, name)
- show_layer(self, name)
Methods
- __init__(self, parent, **traits)
Creates a new LayeredPanel.
- add_layer(self, name, layer)
Adds a layer with the specified name.
All layers are hidden when they are added. Use 'show_layer' to make a layer visible.
- has_layer(self, name)
Does the panel contain a layer with the specified name?
- show_layer(self, name)
Shows the layer with the specified name.