INNER CODE UNIT · Python

_build_status_panel

wzyn20051216/solidworks-automation-skill · apps/desktop/cad_workbench/app.py:393

    def _build_status_panel(self) -> QWidget:
        panel = QFrame()
        panel.setObjectName("StatusPanel")
        panel.setFixedWidth(330)
        layout = QVBoxLayout(panel)
        layout.setContentsMargins(18, 18, 18, 18)
        layout.setSpacing(14)

        title = QLabel("复核状态")
        title.setObjectName("SectionTitle")
        layout.addWidget(title)
        self.overall_status = QLabel("尚未执行")
        self.overall_status.setObjectName("StatusWarn")
        layout.addWidget(self.overall_status)

        self.status_labels: dict[str, QLabel] = {}
        for key, label in [("model", "模型"), ("drawing", "图纸"), ("printing", "打印"), ("package", "交付")]:
            item = QLabel(f"{label}: 等待")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…