Main window of a Desktop Camelot application
Parameters: |
|
---|
Execute an action that was triggered somewhere in the main window, such as the toolbar or the main menu
Get the GuiContext of the active view in the mainwindow, or the GuiContext of the application.
Returns: | a camelot.admin.action.base.GuiContext |
---|
Set the main menu :param main_menu: a list of camelot.admin.menu.Menu objects, as returned by the camelot.admin.application_admin.ApplicationAdmin.get_main_menu() method.
Set the sections of the navigation pane :param main_menu: a list of camelot.admin.section.Section objects, as returned by the camelot.admin.application_admin.ApplicationAdmin.get_sections() method.
Set the toolbar for a specific area :param toolbar_area: the area on which to put the toolbar, from
Qt.LeftToolBarArea through Qt.BottomToolBarArea
Parameters: | toolbar_actions – a list of camelot.admin.action..base.Action objects, as returned by the camelot.admin.application_admin.ApplicationAdmin.get_toolbar_actions() method. |
---|
This method wait until the main window is completely set up, and only then shows it. This is a workaround for a bug in Qt on OS X