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

digraph inheritance5ee603ea4b { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "QtWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.qt.qt_widget.QtWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtObject" -> "QtWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.qt.qt_constraints_widget.QtConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtWidget" -> "QtConstraintsWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "QtObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "QtNotebook" [style="setlinewidth(0.5)",URL="#enaml.qt.qt_notebook.QtNotebook",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "QtConstraintsWidget" -> "QtNotebook" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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

digraph inheritance2ca6282413 { rankdir=LR; width=8.0; ratio=compress; fontsize=14; size="8.0, 12.0"; "WxObject" [shape=box,style="setlinewidth(0.5)",fontsize=10,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25]; "WxWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.widget.Widget.html#enaml.wx.wx_widget.WxWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxObject" -> "WxWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxNotebook" [style="setlinewidth(0.5)",URL="#enaml.wx.wx_notebook.WxNotebook",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxConstraintsWidget" -> "WxNotebook" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WxConstraintsWidget" [style="setlinewidth(0.5)",URL="enaml.widgets.constraints_widget.ConstraintsWidget.html#enaml.wx.wx_constraints_widget.WxConstraintsWidget",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,height=0.25,shape=box,fontsize=10]; "WxWidget" -> "WxConstraintsWidget" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

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.