composeui.core.dashboard¶
Shorter dashboard code: a main view for a dashboard, and presets of ordinary views.
- class composeui.core.dashboard.DashboardView[source]¶
Bases:
MainViewA main view for a dashboard: wide, without the File menu of studies.
A subclass that saves studies sets
has_file_menu = Trueand itsextension.- width: ClassVar[PageWidth] = 2¶
the web content’s default width; a subclass sets it:
width = PageWidth.WIDE
whether the window has
file_menu, the studies’ New, Open, Save, Save As and Exit; an app without studies, e.g. a viewer, sets it to False and leaves it out
- __init__(*, is_visible=True, is_enabled=True, renderer=None, state_filepath=None, minimum_width=720, minimum_height=480, file_menu=NOTHING, file_view=NOTHING, status_bar=NOTHING, replace_file=NOTHING, loaded=NOTHING)¶
Method generated by attrs for class DashboardView.
- Parameters:
is_visible (bool)
is_enabled (bool)
renderer (Optional[Union[Renderer[Any, Any], RendererContainer[Any]]])
state_filepath (Optional[Path])
minimum_width (int)
minimum_height (int)
file_menu (FileMenu)
file_view (FileView)
status_bar (StatusBar)
replace_file (ReplaceFileDialogView)
loaded (SignalNoArgs)
- Return type:
None