From d7cbf3b79ace7c2182fca1eecb5652be9633f7fa Mon Sep 17 00:00:00 2001 From: Ian Humphrey Date: Wed, 16 Mar 2022 13:52:31 -0700 Subject: [PATCH] add label and tooltip to indicate selecting 1 image --- xicam/SAXS/stages/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xicam/SAXS/stages/__init__.py b/xicam/SAXS/stages/__init__.py index a860a20..687b605 100644 --- a/xicam/SAXS/stages/__init__.py +++ b/xicam/SAXS/stages/__init__.py @@ -222,6 +222,12 @@ def __init__(self): self.gui_layout_template["rightbottom"] = self.workflow_editor self.stages[self.name] = GUILayout(**self.gui_layout_template) + # TODO: update when supporting multiple images + self.workflow_editor.workflow_widget.run_button.setToolTip("Select one image when running workflow") + label = QLabel("To run workflow, ensure one image is selected") + position = self.workflow_editor.workflow_widget.layout().count() - 2 + self.workflow_editor.workflow_widget.layout().insertWidget(position, label) + self._roi_added = False def workflow_finished(self, *results):