# enaml.widgets.notebook

Classes

`Notebook` | A component which displays its children as tabbed pages.

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

  Bases: `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.

  hug_height

    How strongly a widget hugs it’s height hint. This is equivalent to the constraint:

        (height == hint) | hug_height

  proxy

    A reference to the ProxyNotebook object.

  pages()

    Get the Page children defined on the notebook.

  child_moved(child)

    A method invoked when a child is moved in the object.

    Sublasses may reimplement this method as required.

    Parameters:

      child (Object) – The child moved in this object.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.