Skip to content

inspector_widget

Provides a tree-view-based widget to inspect details of an instrument and more.

Classes:

  • BRMSInspectorWidget

    BRMSInspectorWidget extends BRMSTreeWidget to display a tree structure with inspection-related data.

  • MainWindow

    MainWindow class for testing.

BRMSInspectorWidget

BRMSInspectorWidget(
    columns: list[str], parent: QWidget | None = None
)

Bases: BRMSTreeWidget

BRMSInspectorWidget extends BRMSTreeWidget to display a tree structure with inspection-related data.

Methods:

Attributes:

  • focused

    BRMSTreeWidget is a QTreeView that displays a tree structure with custom data.

focused class-attribute instance-attribute

focused = Signal()

BRMSTreeWidget is a QTreeView that displays a tree structure with custom data.

clear_data

clear_data() -> None

Clear all data from the tree.

focusInEvent

focusInEvent(event)

Detect when the TreeView gains focus.

populate_data

populate_data(
    data: dict[str, str | object] | list[dict],
    *,
    clear_existing: bool = True,
    expand: bool = True,
) -> None

Add data to the tree.

MainWindow

MainWindow()

Bases: QWidget

MainWindow class for testing.