diff --git a/gui/src/aaregui/panels/face_detection_panel.py b/gui/src/aaregui/panels/face_detection_panel.py index 881cbca6..1f79647c 100644 --- a/gui/src/aaregui/panels/face_detection_panel.py +++ b/gui/src/aaregui/panels/face_detection_panel.py @@ -33,30 +33,33 @@ class FaceDetectionPanel(QWidget): self.ax2 = self.fig.add_subplot(2, 1, 2) # Area vs angle self._top_layout = QGridLayout() - self._top_layout.addWidget(TitleLabel("TELL sample changer", self), 0, 0, 1, 2) + self._top_layout.addWidget(TitleLabel("TELL sample changer", self), 0, 0, 1, 4) self.status_lbl = QLabel("") self._top_layout.addWidget(self.status_lbl, 0, 2) - self.face_detection_button = QPushButton("Face Detection") - self.face_detection_button.setStyleSheet("color: rgb(78, 154, 6);") - self.face_detection_button.clicked.connect(self.run_and_refresh) - self._top_layout.addWidget(self.face_detection_button, 0, 3) - self._top_layout.addWidget(QLabel("step size", parent=self), 1, 0) self.step_size_enter = NumberLineEdit( 0, 50, 15, decimals=4, parent=self ) - self._top_layout.addWidget(self.step_size_enter, 1, 1) + self._top_layout.addWidget(self.step_size_enter, 1, 0, 1, 3) self.step_size_enter.newValue.connect(_set_step_size) self._top_layout.addWidget(QLabel("number of steps", parent=self), 2, 0) self.steps_enter = NumberLineEdit( 0, 50, 14, decimals=4, parent=self ) - self._top_layout.addWidget(self.steps_enter, 2, 1) + self._top_layout.addWidget(self.steps_enter, 2, 0, 1, 3) self.steps_enter.newValue.connect(_set_steps) + self.face_detection_button = QPushButton("Face Detection") + self.face_detection_button.setStyleSheet("color: rgb(78, 154, 6);") + self.face_detection_button.clicked.connect(self.run_and_refresh) + self._top_layout.addWidget(self.face_detection_button, 3, 0, 1, 3) + + self._top_layout.setColumnStretch(0, 1) + self._top_layout.setColumnStretch(1, 0) + self._layout = QVBoxLayout(self) self._layout.addLayout(self._top_layout) self._layout.addWidget(self.canvas)