How to use the pyinstaller.main.ErrorsSettingsWindow function in pyinstaller

To help you get started, we’ve selected a few pyinstaller examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ussserrr / pid-controller-gui / pyinstaller / main.py View on Github external
def __init__(self, parent=None):
        super(ErrorsSettingsWindow, self).__init__(parent)
        self.setWindowTitle("PID errors settings")
        self.setWindowIcon(QIcon(resource_path('img/set_errors.png')))


        self.PerrMin, self.PerrMax = tivaConn.read('PerrLimits')
        PerrMinLabel = QLabel("Min:")
        self.PerrMinLineEdit = QLineEdit()
        self.PerrMinLineEdit.setText('{}'.format(self.PerrMin))
        PerrMaxLabel = QLabel("Max:")
        self.PerrMaxLineEdit = QLineEdit()
        self.PerrMaxLineEdit.setText('{}'.format(self.PerrMax))
        PerrLimitsSetButton = QPushButton('Set')
        PerrLimitsSetButton.clicked.connect(self.setPerrLimits)

        hPerrBox = QHBoxLayout()
        hPerrBox.addWidget(PerrMinLabel)
github ussserrr / pid-controller-gui / pyinstaller / main.py View on Github external
KdHBox1.addStretch(1)
            KdHBox1.addWidget(KdRefreshButton)

            KdHBox2 = QHBoxLayout()
            KdHBox2.addWidget(self.KdWriteLine)
            KdHBox2.addWidget(KdWriteButton)

            KdVBox = QVBoxLayout()
            KdVBox.addLayout(KdHBox1)
            KdVBox.addLayout(KdHBox2)

            KdGroupBox = QGroupBox("Kd control")
            KdGroupBox.setLayout(KdVBox)


            self.errorsSettingsWindow = ErrorsSettingsWindow()
            errorsSettingsButton = QPushButton(QIcon(resource_path('img/set_errors.png')), "Set values of errors...")
            errorsSettingsButton.clicked.connect(self.errorsSettingsWindow.show)


            self.secondsSpinBox = QSpinBox()
            self.secondsSpinBox.setSuffix(" seconds")
            self.secondsSpinBox.setMinimum(0)
            self.secondsSpinBox.setStatusTip('Number of seconds in plot')
            self.secondsSpinBox.setValue(2)


            startPlotButton = QPushButton("Plot")
            startPlotButton.clicked.connect(self.makePlot)


            self.calcAvrgUCheckBox = QCheckBox("Aver. U")