enaml.widgets.notebook

Classes

Notebook A component which displays its children as tabbed pages.
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

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

The position of tabs in the notebook.

tabs_closable

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

tabs_movable

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

selected_tab

The object name for the selected tab in the notebook.

size_hint_mode

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

hug_width

A notebook expands freely in height and width by default.

proxy

A reference to the ProxyNotebook object.

pages()[source]

Get the Page children defined on the notebook.