From 5b0e3db44d93d1f8e212eecbe0e7c144ef28b135 Mon Sep 17 00:00:00 2001 From: Eva Schiffer <evas@ssec.wisc.edu> Date: Tue, 23 Nov 2021 10:10:00 -0600 Subject: [PATCH] more tooltips for the GUI --- pyglance/glance/gui_view.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pyglance/glance/gui_view.py b/pyglance/glance/gui_view.py index bbe9d1e..2086b69 100644 --- a/pyglance/glance/gui_view.py +++ b/pyglance/glance/gui_view.py @@ -219,6 +219,7 @@ class GlanceGUIView (QWidget) : _add_right_aligned_label(layoutToUse, "Image Type:", currentRow) self.imageSelectionDropDown = QComboBox() self.imageSelectionDropDown.activated.connect(self.reportImageTypeSelected) + self.imageSelectionDropDown.setToolTip("The type of plot to create when the Create Plot button is clicked.") layoutToUse.addWidget(self.imageSelectionDropDown, currentRow, 1, 1, 2) currentRow += 1 @@ -226,21 +227,25 @@ class GlanceGUIView (QWidget) : # set up a button that shows the global attributes self.gAttrsButton = QPushButton("Global Attrs.") self.gAttrsButton.clicked.connect(self.reportDisplayGlobalAttrsClicked) + self.gAttrsButton.setToolTip("Show a table of the global attributes in your file(s).") layoutToUse.addWidget(self.gAttrsButton, currentRow, 0, 1, 1) # set up a button that shows the numerical data self.rawDataButton = QPushButton("Show Data") self.rawDataButton.clicked.connect(self.reportDisplayRawDataClicked) + self.rawDataButton.setToolTip("Show a table of the raw data in your selected variable(s).") layoutToUse.addWidget(self.rawDataButton, currentRow, 1, 1, 1) # set up a button that shows stats self.statsButton = QPushButton("Show Statistics") self.statsButton.clicked.connect(self.reportDisplayStatsClicked) + self.statsButton.setToolTip("Show statistics describing your selected variable(s).") layoutToUse.addWidget(self.statsButton, currentRow, 2, 1, 1) # set up the button at the bottom that creates plots self.displayButton = QPushButton("Create Plot") self.displayButton.clicked.connect(self.reportDisplayPlotClicked) + self.displayButton.setToolTip("Create an interactive plot of your selected variable data.") layoutToUse.addWidget(self.displayButton, currentRow, 3, 1, 2) return layoutToUse @@ -278,6 +283,7 @@ class GlanceGUIView (QWidget) : variableSelection = QComboBox() variableSelection.setDisabled(True) variableSelection.activated.connect(partial(self.reportVariableSelected, file_prefix=file_prefix)) + variableSelection.setToolTip("The currently selected variable. Click here to select a different one.") self.widgetInfo[file_prefix]['variable'] = variableSelection grid_layout.addWidget(variableSelection, currentRow, 2, 1, 3) @@ -345,6 +351,7 @@ class GlanceGUIView (QWidget) : _add_right_aligned_label(layoutToUse, "Color map:", currentRow) self.colormapDropDown = QComboBox() self.colormapDropDown.activated.connect(self.colormapSelected) + self.colormapDropDown.setToolTip("The color map that will be used when creating plots.") layoutToUse.addWidget(self.colormapDropDown, currentRow, 1, 1, 2) currentRow += 1 @@ -364,6 +371,7 @@ class GlanceGUIView (QWidget) : _add_right_aligned_label(layoutToUse, "Data Form:", currentRow) self.dataDisplayFormDropDown = QComboBox() self.dataDisplayFormDropDown.activated.connect(self.reportDataFormSelected) + self.dataDisplayFormDropDown.setToolTip("The type of data we will try to treat your selection as when creating plots.") layoutToUse.addWidget(self.dataDisplayFormDropDown, currentRow, 1, 1, 2) currentRow += 1 @@ -510,6 +518,7 @@ class GlanceGUIView (QWidget) : _add_right_aligned_label(grid_layout, "Latitude:", current_row, 1) latNameDropDown = QComboBox() latNameDropDown.activated.connect(partial(self.reportLatitudeSelected, file_prefix=file_prefix)) + latNameDropDown.setToolTip("The Latitude variable that will be used to navigate the " + file_prefix + " file.") self.widgetInfo[file_prefix]["latName"] = latNameDropDown grid_layout.addWidget(latNameDropDown, current_row, 2, 1, 2,) @@ -519,6 +528,7 @@ class GlanceGUIView (QWidget) : _add_right_aligned_label(grid_layout, "Longitude:", current_row, 1) lonNameDropDown = QComboBox() lonNameDropDown.activated.connect(partial(self.reportLongitudeSelected, file_prefix=file_prefix)) + lonNameDropDown.setToolTip("The Longitude variable that will be used to navigate the " + file_prefix + " file.") self.widgetInfo[file_prefix]["lonName"] = lonNameDropDown grid_layout.addWidget(lonNameDropDown, current_row, 2, 1, 2,) -- GitLab