Skip to content

Commit 7e96bdc

Browse files
authored
[GUI] XRF Fit clarify checkbox usage
2 parents bc8d899 + efd662e commit 7e96bdc

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

src/PyMca5/PyMcaGui/physics/xrf/FitParamForm.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,17 @@ def __init__(self, parent=None):
107107
lastLabel_font = qt.QFont(self.lastLabel.font())
108108
lastLabel_font.setItalic(1)
109109
self.lastLabel.setFont(lastLabel_font)
110-
self.lastLabel.setText(str("Last channel :"))
110+
self.lastLabel.setText(str("Fitting region last channel :"))
111111
self.lastLabel.setAlignment(QLabelAlignVCenter | QLabelAlignRight)
112112

113113
self.regionCheck = qt.QCheckBox(self.tabFit)
114-
self.regionCheck.setText(str("Limit fitting region to :"))
114+
self.regionCheck.setText(str("Prevent overwriting of the fitting region on data update"))
115+
# limit tooltip
116+
limitToolTip = "Checking this box will prevent overwriting\n"
117+
limitToolTip += "the fitting region when updating the data\n"
118+
limitToolTip += "Use it to avoid setting the limits based on\n"
119+
limitToolTip += "a zoomed region"
120+
self.regionCheck.setToolTip(limitToolTip)
115121

116122
self.topLine = qt.QFrame(self.tabFit)
117123
self.topLine.setFrameShape(qt.QFrame.HLine)
@@ -214,7 +220,7 @@ def __init__(self, parent=None):
214220
firstLabel_font = qt.QFont(self.firstLabel.font())
215221
firstLabel_font.setItalic(1)
216222
self.firstLabel.setFont(firstLabel_font)
217-
self.firstLabel.setText(str("First channel :"))
223+
self.firstLabel.setText(str("Fitting region first channel :"))
218224
self.firstLabel.setAlignment(qt.Qt.AlignVCenter | qt.Qt.AlignRight)
219225

220226

0 commit comments

Comments
 (0)