enaml.widgets.page
Classes
A widget which can be used as a page in a Notebook control. |
- class enaml.widgets.page.Page(parent=None, **kwargs)[source]
Bases:
Widget
A widget which can be used as a page in a Notebook control.
A Page is a widget which can be used as a child of a Notebook control. It can have at most a single child widget which is an instance of Container.
- title
The title to use for the page in the notebook.
- icon
The icon to use for the page tab.
- closable
Whether or not this individual page is closable. Note that the ‘tabs_closable’ flag on the parent Notebook must be set to True for this to have any effect.
- closed
An event fired when the user closes the page by clicking on the tab’s close button.
- proxy
A reference to the ProxyPage object.
- page_widget()[source]
Get the page widget defined for the page.
The last child Container is the page widget.
- 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.