enaml.widgets.stack

Classes

Transition An object representing an animated transition.
Stack A component which displays its children as a stack of widgets,
class enaml.widgets.stack.Transition[source]

Bases: atom.atom.Atom

An object representing an animated transition.

Once a transition is created, it should be considered read-only.

type

The type of transition effect to use.

direction

The direction of the transition effect. Some transition types will ignore the direction if it doesn’t apply to the effect.

duration

The duration of the transition, in milliseconds.

class enaml.widgets.stack.Stack(parent=None, **kwargs)[source]

Bases: enaml.widgets.constraints_widget.ConstraintsWidget

A component which displays its children as a stack of widgets, only one of which is visible at a time.

index

The index of the visible widget in the stack. The widget itself does not provide a means to changing this index. That control must be supplied externally. If the given index falls outside of the range of stack items, no widget will be visible.

transition

The item transition to use when changing between stack items.

size_hint_mode

The size hint mode for the stack. The default is ‘union’ and means that the size hint of the stack is the union of all the stack item size hints. ‘current’ means the size hint of the stack will be the size hint of the current stack item.

hug_width

A Stack expands freely in height and width by default

proxy

A reference to the ProxyStack widget.

stack_items()[source]

Get the stack items defined on the stack