enaml.widgets.main_window

Classes

MainWindow

A top level main window widget.

class enaml.widgets.main_window.MainWindow(parent=None, **kwargs)[source]

Bases: enaml.widgets.window.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.

menu_bar()[source]

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.

dock_panes()[source]

Get the dock panes defined as children on 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.

tool_bars()[source]

Get the tool bars defined as children on the window.