enaml.widgets.main_window
Classes
A top level main window widget. |
- class enaml.widgets.main_window.MainWindow(parent=None, **kwargs)[source]
Bases:
Window
A top level main window widget.
MainWindow widgets are top level widgets which provide additional functionality beyond frame decoration. A MainWindow may optionally contain a MenuBar, any number of ToolBars, a StatusBar, and any number of DockPanes. Like Window, a MainWindow can have at most one central Container widget, which will be expanded to fit into the available space.
- proxy
A reference to the ProxyMainWindow object.
Get the menu bar defined as a child on the window.
The last MenuBar declared as a child is used as the official menu bar of the window.
- status_bar()[source]
Get the status bar defined as a child on the window.
The last StatusBar declared as a child is used as the official status bar of the window.
- 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.