workspace¶
Convenience functions and classes to present views to the user
- class camelot.view.workspace.DesktopBackground(gui_context)[source]¶
A custom background widget for the desktop. This widget is contained by the first tab (‘Start’ tab) of the desktop workspace.
- class camelot.view.workspace.DesktopWorkspace(app_admin, parent)[source]¶
A tab based workspace that can be used by views to display themselves.
In essence this is a wrapper around QTabWidget to do some initial setup and provide it with a background widget. This was originallly implemented using the QMdiArea, but the QMdiArea has too many drawbacks, like not being able to add close buttons to the tabs in a decent way.
- background¶
The widget class to be used as the view for the uncloseable ‘Start’ tab.
- camelot.view.workspace.show_top_level(view, parent, state=None)[source]¶
Show a widget as a top level window. If a parent window is given, the new window will have the same modality as the parent.
Parameters: - view – the widget extend AbstractView
- parent – the widget with regard to which the top level window will be placed.
- state – the state of the form, ‘maximized’, or ‘left’ or ‘right’, ...