# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'oai_kpa_power_widget_qt.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(648, 325)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.line_10 = QtWidgets.QFrame(Form)
        self.line_10.setMinimumSize(QtCore.QSize(0, 10))
        self.line_10.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_10.setObjectName("line_10")
        self.gridLayout.addWidget(self.line_10, 5, 2, 1, 1)
        self.coreGLayout = QtWidgets.QGridLayout()
        self.coreGLayout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.coreGLayout.setObjectName("coreGLayout")
        self.moduleSerialNumberLEdit = QtWidgets.QLineEdit(Form)
        self.moduleSerialNumberLEdit.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.moduleSerialNumberLEdit.sizePolicy().hasHeightForWidth())
        self.moduleSerialNumberLEdit.setSizePolicy(sizePolicy)
        self.moduleSerialNumberLEdit.setMinimumSize(QtCore.QSize(150, 30))
        self.moduleSerialNumberLEdit.setMaximumSize(QtCore.QSize(2000, 16777215))
        self.moduleSerialNumberLEdit.setText("")
        self.moduleSerialNumberLEdit.setAlignment(QtCore.Qt.AlignCenter)
        self.moduleSerialNumberLEdit.setObjectName("moduleSerialNumberLEdit")
        self.coreGLayout.addWidget(self.moduleSerialNumberLEdit, 1, 1, 1, 1)
        self.statusLineEdit = QtWidgets.QLineEdit(Form)
        self.statusLineEdit.setMinimumSize(QtCore.QSize(0, 30))
        self.statusLineEdit.setObjectName("statusLineEdit")
        self.coreGLayout.addWidget(self.statusLineEdit, 1, 0, 1, 1)
        self.connectionPButton = QtWidgets.QPushButton(Form)
        self.connectionPButton.setEnabled(True)
        self.connectionPButton.setMinimumSize(QtCore.QSize(150, 30))
        self.connectionPButton.setMaximumSize(QtCore.QSize(2000, 30))
        self.connectionPButton.setFlat(False)
        self.connectionPButton.setObjectName("connectionPButton")
        self.coreGLayout.addWidget(self.connectionPButton, 1, 2, 1, 1)
        self.gridLayout.addLayout(self.coreGLayout, 6, 0, 1, 1)
        self.line = QtWidgets.QFrame(Form)
        self.line.setMinimumSize(QtCore.QSize(0, 10))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 5, 0, 1, 1)
        self.userFrame = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.userFrame.sizePolicy().hasHeightForWidth())
        self.userFrame.setSizePolicy(sizePolicy)
        self.userFrame.setMinimumSize(QtCore.QSize(624, 0))
        self.userFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.userFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.userFrame.setObjectName("userFrame")
        self.Current_Voltage = QtWidgets.QLineEdit(self.userFrame)
        self.Current_Voltage.setGeometry(QtCore.QRect(6, 6, 200, 30))
        self.Current_Voltage.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Voltage.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Voltage.setObjectName("Current_Voltage")
        self.textEdit = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit.setGeometry(QtCore.QRect(211, 6, 200, 30))
        self.textEdit.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit.setObjectName("textEdit")
        self.Current_Current = QtWidgets.QLineEdit(self.userFrame)
        self.Current_Current.setGeometry(QtCore.QRect(6, 41, 200, 30))
        self.Current_Current.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Current.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Current.setObjectName("Current_Current")
        self.textEdit_2 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_2.setGeometry(QtCore.QRect(211, 41, 200, 30))
        self.textEdit_2.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_2.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_2.setObjectName("textEdit_2")
        self.textEdit_3 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_3.setGeometry(QtCore.QRect(211, 111, 200, 30))
        self.textEdit_3.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_3.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_3.setObjectName("textEdit_3")
        self.textEdit_4 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_4.setGeometry(QtCore.QRect(211, 146, 200, 30))
        self.textEdit_4.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_4.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_4.setObjectName("textEdit_4")
        self.textEdit_5 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_5.setGeometry(QtCore.QRect(211, 181, 200, 30))
        self.textEdit_5.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_5.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_5.setObjectName("textEdit_5")
        self.textEdit_6 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_6.setGeometry(QtCore.QRect(211, 216, 200, 30))
        self.textEdit_6.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_6.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_6.setObjectName("textEdit_6")
        self.textEdit_7 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_7.setGeometry(QtCore.QRect(211, 76, 200, 30))
        self.textEdit_7.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_7.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_7.setObjectName("textEdit_7")
        self.Power_On_Button = QtWidgets.QPushButton(self.userFrame)
        self.Power_On_Button.setGeometry(QtCore.QRect(417, 7, 200, 30))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Power_On_Button.sizePolicy().hasHeightForWidth())
        self.Power_On_Button.setSizePolicy(sizePolicy)
        self.Power_On_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Power_On_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Power_On_Button.setObjectName("Power_On_Button")
        self.Power_Off_Button = QtWidgets.QPushButton(self.userFrame)
        self.Power_Off_Button.setGeometry(QtCore.QRect(417, 42, 200, 30))
        self.Power_Off_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Power_Off_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Power_Off_Button.setObjectName("Power_Off_Button")
        self.Set_Calibration_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Calibration_Button.setGeometry(QtCore.QRect(417, 112, 200, 30))
        self.Set_Calibration_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Calibration_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Calibration_Button.setObjectName("Set_Calibration_Button")
        self.Get_Constrain_Button = QtWidgets.QPushButton(self.userFrame)
        self.Get_Constrain_Button.setGeometry(QtCore.QRect(417, 217, 200, 30))
        self.Get_Constrain_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Get_Constrain_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Get_Constrain_Button.setObjectName("Get_Constrain_Button")
        self.Get_Calibration_Button = QtWidgets.QPushButton(self.userFrame)
        self.Get_Calibration_Button.setGeometry(QtCore.QRect(417, 147, 200, 30))
        self.Get_Calibration_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Get_Calibration_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Get_Calibration_Button.setObjectName("Get_Calibration_Button")
        self.Set_Constrain_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Constrain_Button.setGeometry(QtCore.QRect(417, 182, 200, 30))
        self.Set_Constrain_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Constrain_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Constrain_Button.setObjectName("Set_Constrain_Button")
        self.Set_Voltage_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Voltage_Button.setGeometry(QtCore.QRect(417, 77, 200, 30))
        self.Set_Voltage_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Voltage_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Voltage_Button.setObjectName("Set_Voltage_Button")
        self.Calibration_1 = QtWidgets.QSpinBox(self.userFrame)
        self.Calibration_1.setGeometry(QtCore.QRect(6, 110, 200, 30))
        self.Calibration_1.setMinimumSize(QtCore.QSize(200, 30))
        self.Calibration_1.setMaximumSize(QtCore.QSize(200, 30))
        self.Calibration_1.setMinimum(-2000)
        self.Calibration_1.setMaximum(2000)
        self.Calibration_1.setObjectName("Calibration_1")
        self.Calibration_2 = QtWidgets.QSpinBox(self.userFrame)
        self.Calibration_2.setGeometry(QtCore.QRect(6, 146, 200, 30))
        self.Calibration_2.setMinimumSize(QtCore.QSize(200, 30))
        self.Calibration_2.setMaximumSize(QtCore.QSize(200, 30))
        self.Calibration_2.setMinimum(-2000)
        self.Calibration_2.setMaximum(2000)
        self.Calibration_2.setObjectName("Calibration_2")
        self.Current_Constrain = QtWidgets.QSpinBox(self.userFrame)
        self.Current_Constrain.setGeometry(QtCore.QRect(6, 181, 200, 30))
        self.Current_Constrain.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Constrain.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Constrain.setMaximum(2500)
        self.Current_Constrain.setSingleStep(100)
        self.Current_Constrain.setObjectName("Current_Constrain")
        self.Desired_Voltage = QtWidgets.QDoubleSpinBox(self.userFrame)
        self.Desired_Voltage.setGeometry(QtCore.QRect(7, 76, 200, 30))
        self.Desired_Voltage.setMinimumSize(QtCore.QSize(200, 30))
        self.Desired_Voltage.setMaximumSize(QtCore.QSize(200, 30))
        self.Desired_Voltage.setObjectName("Desired_Voltage")
        self.Voltage_Constrain = QtWidgets.QDoubleSpinBox(self.userFrame)
        self.Voltage_Constrain.setGeometry(QtCore.QRect(6, 216, 200, 30))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(self.Voltage_Constrain.sizePolicy().hasHeightForWidth())
        self.Voltage_Constrain.setSizePolicy(sizePolicy)
        self.Voltage_Constrain.setMinimumSize(QtCore.QSize(200, 30))
        self.Voltage_Constrain.setMaximumSize(QtCore.QSize(200, 30))
        self.Voltage_Constrain.setObjectName("Voltage_Constrain")
        self.gridLayout.addWidget(self.userFrame, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.moduleSerialNumberLEdit.setPlaceholderText(_translate("Form", "Serial Number"))
        self.connectionPButton.setText(_translate("Form", "Подключение"))
        self.textEdit.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Текущее напряжение, В</p></body></html>"))
        self.textEdit_2.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Текущий ток, мА</p></body></html>"))
        self.textEdit_3.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Калибровка модуля 1 (верхний), мВ</p></body></html>"))
        self.textEdit_4.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Калибровка модулья 2 (нижний), мВ</p></body></html>"))
        self.textEdit_5.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Ограничение по току, мА</p></body></html>"))
        self.textEdit_6.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Ограничение по напряжению, В</p></body></html>"))
        self.textEdit_7.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Желаемое напряжение, В</p></body></html>"))
        self.Power_On_Button.setText(_translate("Form", "ВКЛ"))
        self.Power_Off_Button.setText(_translate("Form", "Откл"))
        self.Set_Calibration_Button.setText(_translate("Form", "Задать калибровки"))
        self.Get_Constrain_Button.setText(_translate("Form", "Считать ограничения"))
        self.Get_Calibration_Button.setText(_translate("Form", "Считать калибровки"))
        self.Set_Constrain_Button.setText(_translate("Form", "Задать ограничения"))
        self.Set_Voltage_Button.setText(_translate("Form", "Установить напряжение"))

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'oai_kpa_power_widget_qt.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(648, 325)
        self.gridLayout = QtWidgets.QGridLayout(Form)
        self.gridLayout.setObjectName("gridLayout")
        self.line_10 = QtWidgets.QFrame(Form)
        self.line_10.setMinimumSize(QtCore.QSize(0, 10))
        self.line_10.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_10.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_10.setObjectName("line_10")
        self.gridLayout.addWidget(self.line_10, 5, 2, 1, 1)
        self.coreGLayout = QtWidgets.QGridLayout()
        self.coreGLayout.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize)
        self.coreGLayout.setObjectName("coreGLayout")
        self.moduleSerialNumberLEdit = QtWidgets.QLineEdit(Form)
        self.moduleSerialNumberLEdit.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.moduleSerialNumberLEdit.sizePolicy().hasHeightForWidth())
        self.moduleSerialNumberLEdit.setSizePolicy(sizePolicy)
        self.moduleSerialNumberLEdit.setMinimumSize(QtCore.QSize(150, 30))
        self.moduleSerialNumberLEdit.setMaximumSize(QtCore.QSize(2000, 16777215))
        self.moduleSerialNumberLEdit.setText("")
        self.moduleSerialNumberLEdit.setAlignment(QtCore.Qt.AlignCenter)
        self.moduleSerialNumberLEdit.setObjectName("moduleSerialNumberLEdit")
        self.coreGLayout.addWidget(self.moduleSerialNumberLEdit, 1, 1, 1, 1)
        self.statusLineEdit = QtWidgets.QLineEdit(Form)
        self.statusLineEdit.setMinimumSize(QtCore.QSize(0, 30))
        self.statusLineEdit.setObjectName("statusLineEdit")
        self.coreGLayout.addWidget(self.statusLineEdit, 1, 0, 1, 1)
        self.connectionPButton = QtWidgets.QPushButton(Form)
        self.connectionPButton.setEnabled(True)
        self.connectionPButton.setMinimumSize(QtCore.QSize(150, 30))
        self.connectionPButton.setMaximumSize(QtCore.QSize(2000, 30))
        self.connectionPButton.setFlat(False)
        self.connectionPButton.setObjectName("connectionPButton")
        self.coreGLayout.addWidget(self.connectionPButton, 1, 2, 1, 1)
        self.gridLayout.addLayout(self.coreGLayout, 6, 0, 1, 1)
        self.line = QtWidgets.QFrame(Form)
        self.line.setMinimumSize(QtCore.QSize(0, 10))
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 5, 0, 1, 1)
        self.userFrame = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.userFrame.sizePolicy().hasHeightForWidth())
        self.userFrame.setSizePolicy(sizePolicy)
        self.userFrame.setMinimumSize(QtCore.QSize(624, 0))
        self.userFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.userFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.userFrame.setObjectName("userFrame")
        self.Current_Voltage = QtWidgets.QLineEdit(self.userFrame)
        self.Current_Voltage.setGeometry(QtCore.QRect(6, 6, 200, 30))
        self.Current_Voltage.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Voltage.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Voltage.setObjectName("Current_Voltage")
        self.textEdit = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit.setGeometry(QtCore.QRect(211, 6, 200, 30))
        self.textEdit.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit.setObjectName("textEdit")
        self.Current_Current = QtWidgets.QLineEdit(self.userFrame)
        self.Current_Current.setGeometry(QtCore.QRect(6, 41, 200, 30))
        self.Current_Current.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Current.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Current.setObjectName("Current_Current")
        self.textEdit_2 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_2.setGeometry(QtCore.QRect(211, 41, 200, 30))
        self.textEdit_2.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_2.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_2.setObjectName("textEdit_2")
        self.textEdit_3 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_3.setGeometry(QtCore.QRect(211, 111, 200, 30))
        self.textEdit_3.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_3.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_3.setObjectName("textEdit_3")
        self.textEdit_4 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_4.setGeometry(QtCore.QRect(211, 146, 200, 30))
        self.textEdit_4.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_4.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_4.setObjectName("textEdit_4")
        self.textEdit_5 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_5.setGeometry(QtCore.QRect(211, 181, 200, 30))
        self.textEdit_5.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_5.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_5.setObjectName("textEdit_5")
        self.textEdit_6 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_6.setGeometry(QtCore.QRect(211, 216, 200, 30))
        self.textEdit_6.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_6.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_6.setObjectName("textEdit_6")
        self.textEdit_7 = QtWidgets.QTextEdit(self.userFrame)
        self.textEdit_7.setGeometry(QtCore.QRect(211, 76, 200, 30))
        self.textEdit_7.setMinimumSize(QtCore.QSize(200, 30))
        self.textEdit_7.setMaximumSize(QtCore.QSize(200, 30))
        self.textEdit_7.setObjectName("textEdit_7")
        self.Power_On_Button = QtWidgets.QPushButton(self.userFrame)
        self.Power_On_Button.setGeometry(QtCore.QRect(417, 7, 200, 30))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.Power_On_Button.sizePolicy().hasHeightForWidth())
        self.Power_On_Button.setSizePolicy(sizePolicy)
        self.Power_On_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Power_On_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Power_On_Button.setObjectName("Power_On_Button")
        self.Power_Off_Button = QtWidgets.QPushButton(self.userFrame)
        self.Power_Off_Button.setGeometry(QtCore.QRect(417, 42, 200, 30))
        self.Power_Off_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Power_Off_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Power_Off_Button.setObjectName("Power_Off_Button")
        self.Set_Calibration_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Calibration_Button.setGeometry(QtCore.QRect(417, 112, 200, 30))
        self.Set_Calibration_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Calibration_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Calibration_Button.setObjectName("Set_Calibration_Button")
        self.Get_Constrain_Button = QtWidgets.QPushButton(self.userFrame)
        self.Get_Constrain_Button.setGeometry(QtCore.QRect(417, 217, 200, 30))
        self.Get_Constrain_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Get_Constrain_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Get_Constrain_Button.setObjectName("Get_Constrain_Button")
        self.Get_Calibration_Button = QtWidgets.QPushButton(self.userFrame)
        self.Get_Calibration_Button.setGeometry(QtCore.QRect(417, 147, 200, 30))
        self.Get_Calibration_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Get_Calibration_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Get_Calibration_Button.setObjectName("Get_Calibration_Button")
        self.Set_Constrain_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Constrain_Button.setGeometry(QtCore.QRect(417, 182, 200, 30))
        self.Set_Constrain_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Constrain_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Constrain_Button.setObjectName("Set_Constrain_Button")
        self.Set_Voltage_Button = QtWidgets.QPushButton(self.userFrame)
        self.Set_Voltage_Button.setGeometry(QtCore.QRect(417, 77, 200, 30))
        self.Set_Voltage_Button.setMinimumSize(QtCore.QSize(200, 30))
        self.Set_Voltage_Button.setMaximumSize(QtCore.QSize(200, 30))
        self.Set_Voltage_Button.setObjectName("Set_Voltage_Button")
        self.Calibration_1 = QtWidgets.QSpinBox(self.userFrame)
        self.Calibration_1.setGeometry(QtCore.QRect(6, 110, 200, 30))
        self.Calibration_1.setMinimumSize(QtCore.QSize(200, 30))
        self.Calibration_1.setMaximumSize(QtCore.QSize(200, 30))
        self.Calibration_1.setMinimum(-2000)
        self.Calibration_1.setMaximum(2000)
        self.Calibration_1.setObjectName("Calibration_1")
        self.Calibration_2 = QtWidgets.QSpinBox(self.userFrame)
        self.Calibration_2.setGeometry(QtCore.QRect(6, 146, 200, 30))
        self.Calibration_2.setMinimumSize(QtCore.QSize(200, 30))
        self.Calibration_2.setMaximumSize(QtCore.QSize(200, 30))
        self.Calibration_2.setMinimum(-2000)
        self.Calibration_2.setMaximum(2000)
        self.Calibration_2.setObjectName("Calibration_2")
        self.Current_Constrain = QtWidgets.QSpinBox(self.userFrame)
        self.Current_Constrain.setGeometry(QtCore.QRect(6, 181, 200, 30))
        self.Current_Constrain.setMinimumSize(QtCore.QSize(200, 30))
        self.Current_Constrain.setMaximumSize(QtCore.QSize(200, 30))
        self.Current_Constrain.setMaximum(2500)
        self.Current_Constrain.setSingleStep(100)
        self.Current_Constrain.setObjectName("Current_Constrain")
        self.Desired_Voltage = QtWidgets.QDoubleSpinBox(self.userFrame)
        self.Desired_Voltage.setGeometry(QtCore.QRect(7, 76, 200, 30))
        self.Desired_Voltage.setMinimumSize(QtCore.QSize(200, 30))
        self.Desired_Voltage.setMaximumSize(QtCore.QSize(200, 30))
        self.Desired_Voltage.setObjectName("Desired_Voltage")
        self.Voltage_Constrain = QtWidgets.QDoubleSpinBox(self.userFrame)
        self.Voltage_Constrain.setGeometry(QtCore.QRect(6, 216, 200, 30))
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(200)
        sizePolicy.setVerticalStretch(30)
        sizePolicy.setHeightForWidth(self.Voltage_Constrain.sizePolicy().hasHeightForWidth())
        self.Voltage_Constrain.setSizePolicy(sizePolicy)
        self.Voltage_Constrain.setMinimumSize(QtCore.QSize(200, 30))
        self.Voltage_Constrain.setMaximumSize(QtCore.QSize(200, 30))
        self.Voltage_Constrain.setObjectName("Voltage_Constrain")
        self.gridLayout.addWidget(self.userFrame, 0, 0, 1, 1)

        self.retranslateUi(Form)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.moduleSerialNumberLEdit.setPlaceholderText(_translate("Form", "Serial Number"))
        self.connectionPButton.setText(_translate("Form", "Подключение"))
        self.textEdit.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Текущее напряжение, В</p></body></html>"))
        self.textEdit_2.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Текущий ток, мА</p></body></html>"))
        self.textEdit_3.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Калибровка модуля 1 (верхний), мВ</p></body></html>"))
        self.textEdit_4.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Калибровка модулья 2 (нижний), мВ</p></body></html>"))
        self.textEdit_5.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Ограничение по току, мА</p></body></html>"))
        self.textEdit_6.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Ограничение по напряжению, В</p></body></html>"))
        self.textEdit_7.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'MS Shell Dlg 2\'; font-size:8.25pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Желаемое напряжение, В</p></body></html>"))
        self.Power_On_Button.setText(_translate("Form", "ВКЛ"))
        self.Power_Off_Button.setText(_translate("Form", "Откл"))
        self.Set_Calibration_Button.setText(_translate("Form", "Задать калибровки"))
        self.Get_Constrain_Button.setText(_translate("Form", "Считать ограничения"))
        self.Get_Calibration_Button.setText(_translate("Form", "Считать калибровки"))
        self.Set_Constrain_Button.setText(_translate("Form", "Задать ограничения"))
        self.Set_Voltage_Button.setText(_translate("Form", "Установить напряжение"))

# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'oai_kpa_power_widget_qt.ui' # # Created by: PyQt5 UI code generator 5.15.2 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again.  Do not edit this file unless you know what you are doing.