From 8e68316d7efc2ea4c41d2b753fc319465773ecef Mon Sep 17 00:00:00 2001 From: MisterMLiL Date: Tue, 3 Oct 2023 16:38:19 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20icon=20=D0=B2=D0=BE=20=D0=B2=D1=81=D0=B5=20=D0=BE?= =?UTF-8?q?=D0=BA=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- statapp/main_window.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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):