mirror of
https://github.com/shizand/statapp.git
synced 2025-04-03 16:13:44 +03:00
fix: исправлен баг "index 0 is out of bounds"
This commit is contained in:
parent
8bcfd8a875
commit
aaa4e314aa
@ -24,15 +24,10 @@ class MainWindow(QMainWindow):
|
|||||||
|
|
||||||
icon = QIcon()
|
icon = QIcon()
|
||||||
icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off)
|
icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off)
|
||||||
self.setWindowIcon(icon)
|
|
||||||
|
|
||||||
self.generateXaction_action = self.findChild(QAction, 'generateXaction')
|
self.ui.generateXaction.setEnabled(False)
|
||||||
self.varianceAnalysisAction_action = self.findChild(QAction, 'varianceAnalysisAction')
|
self.ui.varianceAnalysisAction.setEnabled(False)
|
||||||
self.correlationAnalisisAction_action = self.findChild(QAction, 'correlationAnalisisAction')
|
self.ui.correlationAnalisisAction.setEnabled(False)
|
||||||
|
|
||||||
self.generateXaction_action.setEnabled(False)
|
|
||||||
self.varianceAnalysisAction_action.setEnabled(False)
|
|
||||||
self.correlationAnalisisAction_action.setEnabled(False)
|
|
||||||
|
|
||||||
self.isDataChanged = False
|
self.isDataChanged = False
|
||||||
self.model = InputValuesModel()
|
self.model = InputValuesModel()
|
||||||
@ -72,17 +67,17 @@ class MainWindow(QMainWindow):
|
|||||||
self.isDataChanged = False
|
self.isDataChanged = False
|
||||||
|
|
||||||
if data.shape[1] == 1:
|
if data.shape[1] == 1:
|
||||||
self.generateXaction_action.setEnabled(True)
|
self.ui.generateXaction.setEnabled(True)
|
||||||
self.varianceAnalysisAction_action.setEnabled(False)
|
self.ui.varianceAnalysisAction.setEnabled(False)
|
||||||
self.correlationAnalisisAction_action.setEnabled(False)
|
self.ui.correlationAnalisisAction.setEnabled(False)
|
||||||
elif data.shape[1] > 1:
|
elif data.shape[1] > 1:
|
||||||
self.generateXaction_action.setEnabled(True)
|
self.ui.generateXaction.setEnabled(True)
|
||||||
self.varianceAnalysisAction_action.setEnabled(True)
|
self.ui.varianceAnalysisAction.setEnabled(True)
|
||||||
self.correlationAnalisisAction_action.setEnabled(True)
|
self.ui.correlationAnalisisAction.setEnabled(True)
|
||||||
else:
|
else:
|
||||||
self.generateXaction_action.setEnabled(False)
|
self.ui.generateXaction.setEnabled(False)
|
||||||
self.varianceAnalysisAction_action.setEnabled(False)
|
self.ui.varianceAnalysisAction.setEnabled(False)
|
||||||
self.correlationAnalisisAction_action.setEnabled(False)
|
self.ui.correlationAnalisisAction.setEnabled(False)
|
||||||
|
|
||||||
@Slot()
|
@Slot()
|
||||||
def on_savefileaction_triggered(self):
|
def on_savefileaction_triggered(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user