Skip to content

Commit 8ee6048

Browse files
Update editor.py
Added descriptive "Start:" and "End:" labels before the batch inference selection comboboxes in the UI.
1 parent ac5c136 commit 8ee6048

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

  • annotation_tool/ui/classification/event_editor

annotation_tool/ui/classification/event_editor/editor.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,14 +232,24 @@ def __init__(self, parent=None):
232232
self.batch_input_widget = QWidget()
233233
h_batch = QHBoxLayout(self.batch_input_widget)
234234
h_batch.setContentsMargins(0, 5, 0, 5)
235+
# [NEW] Add descriptive labels for the Start and End comboboxes
236+
self.lbl_start = QLabel("Start:")
235237
self.spin_start = QComboBox()
238+
239+
self.lbl_end = QLabel("End:")
236240
self.spin_end = QComboBox()
241+
237242
self.btn_run_batch = QPushButton("Run")
238243
self.btn_run_batch.setCursor(Qt.CursorShape.PointingHandCursor)
239244
self.btn_run_batch.clicked.connect(self._on_run_batch_clicked)
245+
246+
# [MODIFIED] Add the labels and comboboxes to the horizontal layout in order
247+
h_batch.addWidget(self.lbl_start)
240248
h_batch.addWidget(self.spin_start)
249+
h_batch.addWidget(self.lbl_end)
241250
h_batch.addWidget(self.spin_end)
242251
h_batch.addWidget(self.btn_run_batch)
252+
243253
self.batch_input_widget.setVisible(False)
244254

245255

@@ -451,4 +461,4 @@ def clear_selection(self):
451461
if hasattr(group, 'set_checked_label'):
452462
group.set_checked_label(None)
453463
elif hasattr(group, 'set_checked_labels'):
454-
group.set_checked_labels([])
464+
group.set_checked_labels([])

0 commit comments

Comments
 (0)