MainWindow¶
- class dip.ui.MainWindow¶
Base class: SingleSubviewContainerFactory
The MainWindow class implements a main window factory, i.e. it creates views that implement the IMainWindow interface.
- docks = List(Dock)
The list of dock factories.
- id = 'dip.main_window'
The identifier of each widget created by the factory.
- menu_bar = Instance(MenuBar)
The factory for the menu bar.
- view_interface = IMainWindow
The specific interface implemented by the view.
- create_subviews(model, controller, view)¶
Create the sub-views for a containing view.
Parameters: - model – is the model.
- controller – is the controller.
- view – is the containing view.
Returns: the sub-views.
- finalize(view)¶
Reimplemented to finalize any menu bar and docks.
Parameters: view – is the view created by this factory.