uimodules
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| DockSpec datacook.app.uimodules DockSpec(id: str, title: object, area: Area, create: Callable[[AppController, MainWindow], QtWidgets.QWidget], tabify_with: str | None \= None, visible: bool \= True) |
🛈 DocStrings¶
Registration point for docks, status bar widgets and actions (no shared file to edit).
UI_MODULES already lists every planned UI module. A module that does not exist yet is
skipped, so a work package only creates its module; nothing else needs an edit. A module
may define:
DOCKS: Sequence[DockSpec]: widgets the main window puts into a dock area, the central area or the status bar (create(app, window)builds the widget);install(app, window) -> None: called after all docks exist (menus, toolbar actions, shortcuts, the op palette).
DockSpec
dataclass
¶
Source code in src/datacook/app/uimodules.py
load_modules
¶
Import the UI modules that exist (a missing module is skipped, a broken one raises).