Page Contents

This Page

StackItem

class enaml.widgets.stack_item.StackItem(parent=None, **kwargs)[source]

Bases: enaml.widgets.widget.Widget

A widget which can be used as an item in a Stack.

A StackItem is a widget which can be used as a child of a Stack widget. It can have at most a single child widget which is an instance of Container.

stack_widget = None

A read only property which returns the items’s stack widget.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_stack_item.QtStackItem

class enaml.qt.qt_stack_item.QtStackItem(object_id, parent, session)[source]

Bases: enaml.qt.qt_widget.QtWidget

A Qt implementation of an Enaml StackItem.

create_widget(parent, tree)[source]

Create the underlying QStackItem widget.

init_layout()[source]

Initialize the layout for the underyling widget.

stack_widget()[source]

Find and return the stack widget child for this widget.

Returns:result (QWidget or None) – The stack widget defined for this widget, or None if one is not defined.
child_removed(child)[source]

Handle the child added event for a QtStackItem.

child_added(child)[source]

Handle the child added event for a QtStackItem.

set_visible(visible)[source]

An overridden visibility setter.

This setter disables changing visibility on the widget since the visibility is controlled entirely by the parent stack.

Wx