statapp/statapp/generate_window.py
Maxim Slipenko bdcc2cdfe2
feat: добавлена генерация данных (#13)
Closes #2

---------

Co-authored-by: MisterMLiL <99662459+MisterMLiL@users.noreply.github.com>
2023-09-27 13:19:20 +03:00

24 lines
599 B
Python

from PySide2.QtCore import Slot
from PySide2.QtWidgets import QDialog
from statapp.ui.ui_generate_window import Ui_GenerateWindow
class GenerateWindow(QDialog):
def __init__(self):
super().__init__()
self.deviation = None
self.mat = None
self.count = None
self.ui = Ui_GenerateWindow()
self.ui.setupUi(self)
@Slot()
def on_generatePushButton_clicked(self):
self.count = self.ui.countSpinBox.value()
self.mat = self.ui.matSpinBox.value()
self.deviation = self.ui.deviationSpinBox.value()
self.accept()