mirror of
https://github.com/shizand/statapp.git
synced 2025-04-03 16:13:44 +03:00
fix: добавил icon во все окна
This commit is contained in:
parent
7222e7e880
commit
8e68316d7e
@ -111,6 +111,11 @@ class MainWindow(QMainWindow):
|
|||||||
@Slot()
|
@Slot()
|
||||||
def on_generateYaction_triggered(self):
|
def on_generateYaction_triggered(self):
|
||||||
gw = GenerateWindow()
|
gw = GenerateWindow()
|
||||||
|
|
||||||
|
icon = QIcon()
|
||||||
|
icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off)
|
||||||
|
gw.setWindowIcon(icon)
|
||||||
|
|
||||||
if gw.exec():
|
if gw.exec():
|
||||||
y = np.random.normal(gw.mat, gw.deviation, size=(gw.count, 1))
|
y = np.random.normal(gw.mat, gw.deviation, size=(gw.count, 1))
|
||||||
self.model.updateAllData(y.round(2))
|
self.model.updateAllData(y.round(2))
|
||||||
@ -121,6 +126,10 @@ class MainWindow(QMainWindow):
|
|||||||
def on_generateXaction_triggered(self):
|
def on_generateXaction_triggered(self):
|
||||||
gfw = GenerateFactorWindow()
|
gfw = GenerateFactorWindow()
|
||||||
|
|
||||||
|
icon = QIcon()
|
||||||
|
icon.addFile(resource_path("ui/images/logo.ico"), QSize(), QIcon.Normal, QIcon.Off)
|
||||||
|
gfw.setWindowIcon(icon)
|
||||||
|
|
||||||
if gfw.exec():
|
if gfw.exec():
|
||||||
data = self.model.getData()
|
data = self.model.getData()
|
||||||
y = self.model.getY()
|
y = self.model.getY()
|
||||||
@ -147,11 +156,21 @@ class MainWindow(QMainWindow):
|
|||||||
@Slot()
|
@Slot()
|
||||||
def on_varianceAnalysisAction_triggered(self):
|
def on_varianceAnalysisAction_triggered(self):
|
||||||
dw = VarianceAnalysisWindow(self.model.getData())
|
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()
|
dw.exec()
|
||||||
|
|
||||||
@Slot()
|
@Slot()
|
||||||
def on_correlationAnalisisAction_triggered(self):
|
def on_correlationAnalisisAction_triggered(self):
|
||||||
dw = СorrelationAnalysisWindow(self.model.getData())
|
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()
|
dw.exec()
|
||||||
|
|
||||||
def closeEvent(self, event):
|
def closeEvent(self, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user