From d7eaff5f0be1338f458350766135135e4c27930c Mon Sep 17 00:00:00 2001 From: Dominik Demuth Date: Tue, 1 Aug 2023 06:54:35 +0000 Subject: [PATCH] functioning apply button for tau calculation, part of #109 --- src/gui_qt/nmr/t1_from_tau.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gui_qt/nmr/t1_from_tau.py b/src/gui_qt/nmr/t1_from_tau.py index 00e1f18..97b23a4 100644 --- a/src/gui_qt/nmr/t1_from_tau.py +++ b/src/gui_qt/nmr/t1_from_tau.py @@ -199,3 +199,9 @@ class QRelaxCalc(QtWidgets.QDialog, Ui_Dialog): def accept(self): self.calc_relaxation() super().accept() + + @QtCore.pyqtSlot(QtWidgets.QAbstractButton) + def on_buttonBox_clicked(self, button: QtWidgets.QAbstractButton): + role = self.buttonBox.buttonRole(button) + if role == self.buttonBox.ApplyRole: + self.calc_relaxation()