diff --git a/statapp/main_window.py b/statapp/main_window.py index e9ab777..554c191 100644 --- a/statapp/main_window.py +++ b/statapp/main_window.py @@ -111,6 +111,11 @@ class MainWindow(QMainWindow): @Slot() def on_generateYaction_triggered(self): gw = GenerateWindow() + + icon = QIcon() + icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off) + gw.setWindowIcon(icon) + if gw.exec(): y = np.random.normal(gw.mat, gw.deviation, size=(gw.count, 1)) self.model.updateAllData(y.round(2)) @@ -121,6 +126,10 @@ class MainWindow(QMainWindow): def on_generateXaction_triggered(self): gfw = GenerateFactorWindow() + icon = QIcon() + icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off) + gfw.setWindowIcon(icon) + if gfw.exec(): data = self.model.getData() y = self.model.getY() @@ -147,11 +156,21 @@ class MainWindow(QMainWindow): @Slot() def on_varianceAnalysisAction_triggered(self): dw = VarianceAnalysisWindow(self.model.getData()) + + icon = QIcon() + icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off) + dw.setWindowIcon(icon) + dw.exec() @Slot() def on_correlationAnalisisAction_triggered(self): dw = СorrelationAnalysisWindow(self.model.getData()) + + icon = QIcon() + icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off) + dw.setWindowIcon(icon) + dw.exec() def closeEvent(self, event):