diff --git a/.DS_Store b/.DS_Store index f75fc2b..c032f8e 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/app.py b/app.py index 282822e..e64d815 100644 --- a/app.py +++ b/app.py @@ -93,6 +93,7 @@ def modelChanged(self): self.groupBoxConditions.setEnabled(True) self.groupBoxElements.setEnabled(True) self.groupBoxComputation.setEnabled(True) + self.pushButtonPlotMatrix.setEnabled(False) self.labelStatus1.setText("✅") self.model = eval( "models." + self.listWidget.currentItem().text() + '()') @@ -126,6 +127,7 @@ def sectionChanged(self): def elementsNumberChanged(self): """Change in number of elements.""" + self.pushButtonPlotMatrix.setEnabled(False) self.lineEditElements.setText( str(int(2**(self.horizontalSliderElements.value())))) @@ -229,6 +231,7 @@ def compute(self): self.model._lenght = self.doubleSpinBoxLenght.value() self.updateSection() self.model.elems(int(self.lineEditElements.text())) + self.pushButtonPlotMatrix.setEnabled(True) diag.show() QApplication.processEvents() if self.model._effortsRepartis: