From 8ca535cc8fb3c97d049afaef30ade033781a6e8e Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Sun, 11 Feb 2024 21:54:46 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20"=D0=A0=D0=B0=D1=81=D0=BF=D1=80=D0=B5?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B5=D0=BD=D0=B8=D1=8F"=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=82=D1=81=D1=83=D1=82=D1=81=D1=82=D0=B2=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BE=D1=82=D0=BA=D0=BB=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statapp/main_window.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/statapp/main_window.py b/statapp/main_window.py index 0065b44..b662f80 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -51,10 +51,6 @@ class MainWindow(QMainWindow): addIcon(self) - self.ui.generateXaction.setEnabled(False) - self.ui.varianceAnalysisAction.setEnabled(False) - self.ui.correlationAnalisisAction.setEnabled(False) - self.mainActions = [ self.ui.varianceAnalysisAction, self.ui.correlationAnalisisAction, @@ -112,13 +108,22 @@ class MainWindow(QMainWindow): # есть только отклик if data.shape[1] == 1: self.ui.generateXaction.setEnabled(True) + self.ui.uniformDistributionAction.setEnabled(True) + self.ui.normalDistributionAction.setEnabled(True) + self.ui.exponentialDistributionAction.setEnabled(True) self.setEnabledMainActions(False) # есть отклик и фактор(ы) elif data.shape[1] > 1: self.ui.generateXaction.setEnabled(True) + self.ui.uniformDistributionAction.setEnabled(True) + self.ui.normalDistributionAction.setEnabled(True) + self.ui.exponentialDistributionAction.setEnabled(True) self.setEnabledMainActions(True) else: self.ui.generateXaction.setEnabled(False) + self.ui.uniformDistributionAction.setEnabled(False) + self.ui.normalDistributionAction.setEnabled(False) + self.ui.exponentialDistributionAction.setEnabled(False) self.setEnabledMainActions(False)