Page Contents

This Page

SplitItem

class enaml.widgets.split_item.SplitItem(parent=None, **kwargs)[source]

Bases: enaml.widgets.widget.Widget

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

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

preferred_size = None

The preferred size for this item in the splitter, or None if there is no preference for the size. The default is None.

split_widget = None

A read only property which returns the split widget.

snapshot()[source]

Return the dict of creation attributes for the control.

bind()[source]

Bind the change handlers for the widget.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_split_item.QtSplitItem

class enaml.qt.qt_split_item.QtSplitItem(object_id, parent, session)[source]

Bases: enaml.qt.qt_widget.QtWidget

A Qt implementation of an Enaml SplitItem.

create_widget(parent, tree)[source]

Create the underlying QStackItem widget.

create(tree)[source]

Create and initialize the underyling widget.

init_layout()[source]

Initialize the layout for the underyling widget.

split_widget()[source]

Find and return the split widget child for this widget.

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

Handle the child removed event for a QtSplitItem.

child_added(child)[source]

Handle the child added event for a QtSplitItem.

on_action_set_preferred_size(content)[source]

Handle the ‘set_preferred_size’ action from the Enaml widget.

set_preferred_size(size)[source]

Set the preferred size for this item in the splitter.

Wx

Inheritance diagram of enaml.wx.wx_split_item.WxSplitItem

class enaml.wx.wx_split_item.WxSplitItem(object_id, parent, session)[source]

Bases: enaml.wx.wx_widget.WxWidget

A Wx implementation of an Enaml SplitItem.

create_widget(parent, tree)[source]

Create the underlying QStackItem widget.

create(tree)[source]

Create and initialize the underyling widget.

init_layout()[source]

Initialize the layout for the underyling widget.

split_widget()[source]

Find and return the split widget child for this widget.

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

Handle the child removed event for a WxSplitItem.

child_added(child)[source]

Handle the child added event for a QtSplitItem.

on_action_set_preferred_size(content)[source]

Handle the ‘set_preferred_size’ action from the Enaml widget.

set_preferred_size(size)[source]

Set the preferred size for this item in the splitter.