Page Contents

This Page

Notebook

class enaml.widgets.notebook.Notebook(parent=None, **kwargs)[source]

Bases: enaml.widgets.constraints_widget.ConstraintsWidget

A component which displays its children as tabbed pages.

tab_style = None

The style of tabs to use in the notebook. Preferences style tabs are appropriate for configuration dialogs and the like. Document style tabs are appropriate for multi-page editing in code editors and the like.

tab_position = None

The position of tabs in the notebook.

tabs_closable = None

Whether or not the tabs in the notebook should be closable.

tabs_movable = None

Whether or not the tabs in the notebook should be movable.

pages = None

A read only property which returns the notebook’s Pages.

hug_width = None

How strongly a component hugs it’s contents’ width. A Notebook ignores its width hug by default, so it expands freely in width.

hug_height = None

How strongly a component hugs it’s contents’ height. A Notebook ignores its height hug by default, so it expands freely in height.

snapshot()[source]

Returns the snapshot for the control.

bind()[source]

Bind the change handlers for the control.

__implements__

alias of __NoInterface__

Backends

Qt

Inheritance diagram of enaml.qt.qt_notebook.QtNotebook

class enaml.qt.qt_notebook.QtNotebook(object_id, parent, session)[source]

Bases: enaml.qt.qt_constraints_widget.QtConstraintsWidget

A Qt implementation of an Enaml Notebook.

create_widget(parent, tree)[source]

Create the underlying notebook widget.

create(tree)[source]

Create and initialize the underyling widget.

init_layout()[source]

Handle the layout initialization for the notebook.

child_removed(child)[source]

Handle the child removed event for a QtNotebook.

child_added(child)[source]

Handle the child added event for a QtNotebook.

on_layout_requested()[source]

Handle the layoutRequested signal from the QNotebook.

on_action_set_tab_style(content)[source]

Handle the ‘set_tab_style’ action from the Enaml widget.

on_action_set_tab_position(content)[source]

Handle the ‘set_tab_position’ action from the Enaml widget.

on_action_set_tabs_closable(content)[source]

Handle the ‘set_tabs_closable’ action from the Enaml widget.

on_action_set_tabs_movable(content)[source]

Handle the ‘set_tabs_movable’ action from the Enaml widget.

set_tab_style(style)[source]

Set the tab style for the tab bar in the widget.

set_tab_position(position)[source]

Set the position of the tab bar in the widget.

set_tabs_closable(closable)[source]

Set whether or not the tabs are closable.

set_tabs_movable(movable)[source]

Set whether or not the tabs are movable.

Wx

Inheritance diagram of enaml.wx.wx_notebook.WxNotebook

class enaml.wx.wx_notebook.WxNotebook(object_id, parent, session)[source]

Bases: enaml.wx.wx_constraints_widget.WxConstraintsWidget

A Wx implementation of an Enaml Notebook.

create_widget(parent, tree)[source]

Create the underlying wx notebook widget.

create(tree)[source]

Create and initialize the notebook control

init_layout()[source]

Handle the layout initialization for the notebook.

child_removed(child)[source]

Handle the child removed event for a WxNotebook.

child_added(child)[source]

Handle the child added event for a WxNotebook.

on_layout_requested(event)[source]

Handle the layout request event from a child page.

on_action_set_tab_style(content)[source]

Handle the ‘set_tab_style’ action from the Enaml widget.

on_action_set_tab_position(content)[source]

Handle the ‘set_tab_position’ action from the Enaml widget.

on_action_set_tabs_closable(content)[source]

Handle the ‘set_tabs_closable’ action from the Enaml widget.

on_action_set_tabs_movable(content)[source]

Handle the ‘set_tabs_movable’ action from the Enaml widget.

set_tab_style(style)[source]

Set the tab style for the underlying widget.

set_tab_position(position)[source]

Set the position of the tab bar in the widget.

set_tabs_closable(closable)[source]

Set whether or not the tabs are closable.

set_tabs_movable(movable)[source]

Set whether or not the tabs are movable.