From aaa4e314aad4e34f37d3faf24be14db6c7196c3c Mon Sep 17 00:00:00 2001 From: MisterMLiL Date: Tue, 3 Oct 2023 13:53:40 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D0=B1=D0=B0=D0=B3=20"index=200=20is=20out?= =?UTF-8?q?=20of=20bounds"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statapp/main_window.py | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/statapp/main_window.py b/statapp/main_window.py index 2659670..9acd5ae 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -24,15 +24,10 @@ class MainWindow(QMainWindow): icon = QIcon() icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off) - self.setWindowIcon(icon) - self.generateXaction_action = self.findChild(QAction, 'generateXaction') - self.varianceAnalysisAction_action = self.findChild(QAction, 'varianceAnalysisAction') - self.correlationAnalisisAction_action = self.findChild(QAction, 'correlationAnalisisAction') - - self.generateXaction_action.setEnabled(False) - self.varianceAnalysisAction_action.setEnabled(False) - self.correlationAnalisisAction_action.setEnabled(False) + self.ui.generateXaction.setEnabled(False) + self.ui.varianceAnalysisAction.setEnabled(False) + self.ui.correlationAnalisisAction.setEnabled(False) self.isDataChanged = False self.model = InputValuesModel() @@ -72,17 +67,17 @@ class MainWindow(QMainWindow): self.isDataChanged = False if data.shape[1] == 1: - self.generateXaction_action.setEnabled(True) - self.varianceAnalysisAction_action.setEnabled(False) - self.correlationAnalisisAction_action.setEnabled(False) + self.ui.generateXaction.setEnabled(True) + self.ui.varianceAnalysisAction.setEnabled(False) + self.ui.correlationAnalisisAction.setEnabled(False) elif data.shape[1] > 1: - self.generateXaction_action.setEnabled(True) - self.varianceAnalysisAction_action.setEnabled(True) - self.correlationAnalisisAction_action.setEnabled(True) + self.ui.generateXaction.setEnabled(True) + self.ui.varianceAnalysisAction.setEnabled(True) + self.ui.correlationAnalisisAction.setEnabled(True) else: - self.generateXaction_action.setEnabled(False) - self.varianceAnalysisAction_action.setEnabled(False) - self.correlationAnalisisAction_action.setEnabled(False) + self.ui.generateXaction.setEnabled(False) + self.ui.varianceAnalysisAction.setEnabled(False) + self.ui.correlationAnalisisAction.setEnabled(False) @Slot() def on_savefileaction_triggered(self):