INNER CODE UNIT · Python

_spin

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

    def _spin(self, value: float, minimum: float = 0.0, maximum: float = 10000.0, suffix: str = " mm") -> QDoubleSpinBox:
        spin = QDoubleSpinBox()
        spin.setDecimals(2)
        spin.setRange(minimum, maximum)
        spin.setValue(value)
        spin.setSuffix(suffix)
        spin.setSingleStep(0.1)
        return spin

    def _build_shell_tab(self) -> QWidget:
        page = QWidget()
        layout = QGridLayout(page)
        layout.setContentsMargins(0, 0, 0, 0)
        layout.setSpacing(14)

        shell_panel, shell_layout = self._panel("外形尺寸")
        shell_form = QFormLayout()
        shell_form.setHorizontalSpacing(16)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…