functioning apply button for tau calculation, part of #109

This commit is contained in:
Dominik Demuth 2023-08-01 06:54:35 +00:00
parent a5216b1eed
commit d7eaff5f0b

View File

@ -199,3 +199,9 @@ class QRelaxCalc(QtWidgets.QDialog, Ui_Dialog):
def accept(self): def accept(self):
self.calc_relaxation() self.calc_relaxation()
super().accept() 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()