fix: unsqueeze Chi/Phi row and widen Step box in smargon panel
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
CI / lint (push) Skipped
CI / test (3.11) (push) Skipped
CI / test (3.12) (push) Skipped
CI / test (3.13) (push) Skipped
CI / test-with-beamline-plugins (pxi_bec) (push) Skipped
CI / test-with-beamline-plugins (pxii_bec) (push) Skipped
CI / test-with-beamline-plugins (pxiii_bec) (push) Skipped
Move button gets its own full-width row instead of sharing row 1 with the Chi/Phi entries; Step box spans columns 1-4 instead of the narrow Chi column. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -80,20 +80,23 @@ class SmargonPanel(QWidget):
|
||||
self.move_group.add_box("chi", self.chi_enter)
|
||||
self.move_group.add_box("phi", self.phi_enter)
|
||||
self.move_group.applied.connect(self._move_axes)
|
||||
grid_layout.addWidget(self.move_group.button, 1, 6)
|
||||
# Own row: sharing row 1 squeezed the Chi/Phi entry boxes.
|
||||
grid_layout.addWidget(self.move_group.button, 2, 0, 1, 7)
|
||||
|
||||
self.home_button = QPushButton("Move home", parent=self)
|
||||
grid_layout.addWidget(self.home_button, 2, 0, 1, 7)
|
||||
grid_layout.addWidget(self.home_button, 3, 0, 1, 7)
|
||||
self.home_button.clicked.connect(self.home)
|
||||
|
||||
self.move_panel = SmargonMoveWidget(parent=self)
|
||||
grid_layout.addWidget(self.move_panel, 3, 0, 1, 7)
|
||||
grid_layout.addWidget(self.move_panel, 4, 0, 1, 7)
|
||||
self.move_panel.smargon_rel.connect(self.smargon_rel)
|
||||
|
||||
grid_layout.addWidget(QLabel("Step", parent=self), 4, 0)
|
||||
grid_layout.addWidget(QLabel("Step", parent=self), 5, 0)
|
||||
self.step = NumberLineEdit(1, 1000, 100, 0, parent=self)
|
||||
grid_layout.addWidget(self.step, 4, 1)
|
||||
grid_layout.addWidget(QLabel("μm", parent=self), 4, 2)
|
||||
# Span to the μm label so the box gets real width instead of the
|
||||
# narrow column shared with the Chi entry.
|
||||
grid_layout.addWidget(self.step, 5, 1, 1, 4)
|
||||
grid_layout.addWidget(QLabel("μm", parent=self), 5, 5)
|
||||
self.step.newValue.connect(self.step_changed)
|
||||
|
||||
@Slot(float)
|
||||
|
||||
Reference in New Issue
Block a user