Skip to content

DockSpec

🛈 DocStrings

Source code in src/datacook/app/uimodules.py
@dataclass(frozen=True, slots=True)
class DockSpec:
    id: str
    """Object name of the dock (window state, `window.docks[id]`)."""
    title: object
    """`LazyText` (`_("…")`) or str; converted with `str()` on every retranslate."""
    area: Area
    create: Callable[[AppController, MainWindow], QtWidgets.QWidget]
    tabify_with: str | None = None
    """Put this dock as a tab onto the dock with that id (same area)."""
    visible: bool = True

id instance-attribute

id: str

Object name of the dock (window state, window.docks[id]).

tabify_with class-attribute instance-attribute

tabify_with: str | None = None

Put this dock as a tab onto the dock with that id (same area).

title instance-attribute

title: object

LazyText (_("…")) or str; converted with str() on every retranslate.

:fa-brands-github: Show source on GitHub