# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'currents.ui' ## ## Created by: Qt User Interface Compiler version 6.8.0 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale, QMetaObject, QObject, QPoint, QRect, QSize, QTime, QUrl, Qt) from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor, QFont, QFontDatabase, QGradient, QIcon, QImage, QKeySequence, QLinearGradient, QPainter, QPalette, QPixmap, QRadialGradient, QTransform) from PySide6.QtWidgets import (QApplication, QCheckBox, QComboBox, QFormLayout, QHBoxLayout, QLabel, QLineEdit, QMainWindow, QPushButton, QSizePolicy, QVBoxLayout, QWidget) class Ui_Controller(object): def setupUi(self, Controller): if not Controller.objectName(): Controller.setObjectName(u"Controller") Controller.resize(273, 350) sizePolicy = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(Controller.sizePolicy().hasHeightForWidth()) Controller.setSizePolicy(sizePolicy) Controller.setMinimumSize(QSize(273, 350)) Controller.setMaximumSize(QSize(273, 350)) self.centralwidget = QWidget(Controller) self.centralwidget.setObjectName(u"centralwidget") self.formLayoutWidget = QWidget(self.centralwidget) self.formLayoutWidget.setObjectName(u"formLayoutWidget") self.formLayoutWidget.setGeometry(QRect(0, 0, 271, 251)) self.formLayout = QFormLayout(self.formLayoutWidget) self.formLayout.setObjectName(u"formLayout") self.formLayout.setRowWrapPolicy(QFormLayout.DontWrapRows) self.formLayout.setLabelAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter) self.formLayout.setVerticalSpacing(8) self.formLayout.setContentsMargins(10, 10, 0, 0) self.ComPort = QLabel(self.formLayoutWidget) self.ComPort.setObjectName(u"ComPort") font = QFont() font.setFamilies([u"Ubuntu Sans"]) self.ComPort.setFont(font) self.formLayout.setWidget(0, QFormLayout.LabelRole, self.ComPort) self.DeviceSelection = QComboBox(self.formLayoutWidget) self.DeviceSelection.addItem("") self.DeviceSelection.setObjectName(u"DeviceSelection") sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed) sizePolicy1.setHorizontalStretch(0) sizePolicy1.setVerticalStretch(0) sizePolicy1.setHeightForWidth(self.DeviceSelection.sizePolicy().hasHeightForWidth()) self.DeviceSelection.setSizePolicy(sizePolicy1) self.DeviceSelection.setMaximumSize(QSize(110, 16777215)) font1 = QFont() font1.setFamilies([u"Arial"]) font1.setPointSize(10) self.DeviceSelection.setFont(font1) self.formLayout.setWidget(0, QFormLayout.FieldRole, self.DeviceSelection) self.DmxAddress = QLabel(self.formLayoutWidget) self.DmxAddress.setObjectName(u"DmxAddress") self.formLayout.setWidget(1, QFormLayout.LabelRole, self.DmxAddress) self.DmxAddressField = QLineEdit(self.formLayoutWidget) self.DmxAddressField.setObjectName(u"DmxAddressField") self.DmxAddressField.setMaximumSize(QSize(50, 16777215)) self.DmxAddressField.setAlignment(Qt.AlignCenter) self.formLayout.setWidget(1, QFormLayout.FieldRole, self.DmxAddressField) self.Personality = QLabel(self.formLayoutWidget) self.Personality.setObjectName(u"Personality") self.formLayout.setWidget(2, QFormLayout.LabelRole, self.Personality) self.Current1 = QLabel(self.formLayoutWidget) self.Current1.setObjectName(u"Current1") self.formLayout.setWidget(3, QFormLayout.LabelRole, self.Current1) self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.Current1Field = QLineEdit(self.formLayoutWidget) self.Current1Field.setObjectName(u"Current1Field") self.Current1Field.setMaximumSize(QSize(50, 16777215)) self.Current1Field.setAlignment(Qt.AlignCenter) self.horizontalLayout_2.addWidget(self.Current1Field) self.ma1 = QLabel(self.formLayoutWidget) self.ma1.setObjectName(u"ma1") self.ma1.setMaximumSize(QSize(16777215, 16777215)) self.horizontalLayout_2.addWidget(self.ma1) self.formLayout.setLayout(3, QFormLayout.FieldRole, self.horizontalLayout_2) self.Current2 = QLabel(self.formLayoutWidget) self.Current2.setObjectName(u"Current2") self.formLayout.setWidget(4, QFormLayout.LabelRole, self.Current2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.Current2Field = QLineEdit(self.formLayoutWidget) self.Current2Field.setObjectName(u"Current2Field") self.Current2Field.setMaximumSize(QSize(50, 16777215)) self.Current2Field.setAlignment(Qt.AlignCenter) self.horizontalLayout_3.addWidget(self.Current2Field) self.ma2 = QLabel(self.formLayoutWidget) self.ma2.setObjectName(u"ma2") self.horizontalLayout_3.addWidget(self.ma2) self.formLayout.setLayout(4, QFormLayout.FieldRole, self.horizontalLayout_3) self.Current3 = QLabel(self.formLayoutWidget) self.Current3.setObjectName(u"Current3") self.formLayout.setWidget(5, QFormLayout.LabelRole, self.Current3) self.horizontalLayout_4 = QHBoxLayout() self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.Current3Field = QLineEdit(self.formLayoutWidget) self.Current3Field.setObjectName(u"Current3Field") self.Current3Field.setMaximumSize(QSize(50, 16777215)) self.Current3Field.setAlignment(Qt.AlignCenter) self.horizontalLayout_4.addWidget(self.Current3Field) self.ma3 = QLabel(self.formLayoutWidget) self.ma3.setObjectName(u"ma3") self.horizontalLayout_4.addWidget(self.ma3) self.formLayout.setLayout(5, QFormLayout.FieldRole, self.horizontalLayout_4) self.Current4 = QLabel(self.formLayoutWidget) self.Current4.setObjectName(u"Current4") self.formLayout.setWidget(6, QFormLayout.LabelRole, self.Current4) self.horizontalLayout_5 = QHBoxLayout() self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") self.Current4Field = QLineEdit(self.formLayoutWidget) self.Current4Field.setObjectName(u"Current4Field") self.Current4Field.setMaximumSize(QSize(50, 16777215)) self.Current4Field.setAlignment(Qt.AlignCenter) self.horizontalLayout_5.addWidget(self.Current4Field) self.ma4 = QLabel(self.formLayoutWidget) self.ma4.setObjectName(u"ma4") self.horizontalLayout_5.addWidget(self.ma4) self.formLayout.setLayout(6, QFormLayout.FieldRole, self.horizontalLayout_5) self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName(u"horizontalLayout") self.horizontalLayout.setContentsMargins(-1, -1, 0, -1) self.ModeSelection = QComboBox(self.formLayoutWidget) self.ModeSelection.addItem("") self.ModeSelection.setObjectName(u"ModeSelection") self.ModeSelection.setMaximumSize(QSize(131, 32)) font2 = QFont() font2.setFamilies([u"Arial"]) font2.setPointSize(9) self.ModeSelection.setFont(font2) self.ModeSelection.setFrame(True) self.horizontalLayout.addWidget(self.ModeSelection) self.ModeInfo = QPushButton(self.formLayoutWidget) self.ModeInfo.setObjectName(u"ModeInfo") sizePolicy1.setHeightForWidth(self.ModeInfo.sizePolicy().hasHeightForWidth()) self.ModeInfo.setSizePolicy(sizePolicy1) self.ModeInfo.setMaximumSize(QSize(32, 32)) icon = QIcon() iconThemeName = u"dialog-question" if QIcon.hasThemeIcon(iconThemeName): icon = QIcon.fromTheme(iconThemeName) else: icon.addFile(u".", QSize(), QIcon.Mode.Normal, QIcon.State.Off) self.ModeInfo.setIcon(icon) self.ModeInfo.setIconSize(QSize(20, 20)) self.ModeInfo.setCheckable(False) self.horizontalLayout.addWidget(self.ModeInfo) self.formLayout.setLayout(2, QFormLayout.FieldRole, self.horizontalLayout) self.verticalLayoutWidget = QWidget(self.centralwidget) self.verticalLayoutWidget.setObjectName(u"verticalLayoutWidget") self.verticalLayoutWidget.setGeometry(QRect(0, 250, 271, 101)) self.verticalLayout = QVBoxLayout(self.verticalLayoutWidget) self.verticalLayout.setObjectName(u"verticalLayout") self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.horizontalLayout_6 = QHBoxLayout() self.horizontalLayout_6.setSpacing(50) self.horizontalLayout_6.setObjectName(u"horizontalLayout_6") self.horizontalLayout_6.setContentsMargins(10, -1, 10, -1) self.Read = QPushButton(self.verticalLayoutWidget) self.Read.setObjectName(u"Read") self.horizontalLayout_6.addWidget(self.Read) self.Write = QPushButton(self.verticalLayoutWidget) self.Write.setObjectName(u"Write") self.horizontalLayout_6.addWidget(self.Write) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_7 = QHBoxLayout() self.horizontalLayout_7.setObjectName(u"horizontalLayout_7") self.horizontalLayout_7.setContentsMargins(0, -1, -1, -1) self.Check = QCheckBox(self.verticalLayoutWidget) self.Check.setObjectName(u"Check") self.Check.setMaximumSize(QSize(97, 16777215)) self.horizontalLayout_7.addWidget(self.Check) self.verticalLayout.addLayout(self.horizontalLayout_7) self.Status = QLabel(self.verticalLayoutWidget) self.Status.setObjectName(u"Status") self.Status.setAlignment(Qt.AlignCenter) self.verticalLayout.addWidget(self.Status) Controller.setCentralWidget(self.centralwidget) self.retranslateUi(Controller) QMetaObject.connectSlotsByName(Controller) # setupUi def retranslateUi(self, Controller): Controller.setWindowTitle(QCoreApplication.translate("Controller", u"Controller", None)) self.ComPort.setText(QCoreApplication.translate("Controller", u"COM \u041f\u043e\u0440\u0442:", None)) self.DeviceSelection.setItemText(0, QCoreApplication.translate("Controller", u"/dev/ttyUSB0", None)) self.DmxAddress.setText(QCoreApplication.translate("Controller", u"DMX \u0410\u0434\u0440\u0435\u0441:", None)) self.DmxAddressField.setText(QCoreApplication.translate("Controller", u"10", None)) self.DmxAddressField.setPlaceholderText(QCoreApplication.translate("Controller", u"no data", None)) self.Personality.setText(QCoreApplication.translate("Controller", u"Personality:", None)) self.Current1.setText(QCoreApplication.translate("Controller", u" I1", None)) self.Current1Field.setText(QCoreApplication.translate("Controller", u"1000", None)) self.ma1.setText(QCoreApplication.translate("Controller", u"mA", None)) self.Current2.setText(QCoreApplication.translate("Controller", u" I2", None)) self.Current2Field.setText(QCoreApplication.translate("Controller", u"450", None)) self.ma2.setText(QCoreApplication.translate("Controller", u"mA", None)) self.Current3.setText(QCoreApplication.translate("Controller", u" I3", None)) self.Current3Field.setText(QCoreApplication.translate("Controller", u"520", None)) self.ma3.setText(QCoreApplication.translate("Controller", u"mA", None)) self.Current4.setText(QCoreApplication.translate("Controller", u" I4", None)) self.Current4Field.setText(QCoreApplication.translate("Controller", u"780", None)) self.ma4.setText(QCoreApplication.translate("Controller", u"mA", None)) self.ModeSelection.setItemText(0, QCoreApplication.translate("Controller", u"28:CH RGB45 SLO", None)) self.ModeInfo.setText("") self.Read.setText(QCoreApplication.translate("Controller", u"\u0427\u0442\u0435\u043d\u0438\u0435", None)) self.Write.setText(QCoreApplication.translate("Controller", u"\u0417\u0430\u043f\u0438\u0441\u044c", None)) self.Check.setText(QCoreApplication.translate("Controller", u"\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c", None)) self.Status.setText(QCoreApplication.translate("Controller", u"\u0412\u044b\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043f\u043e\u0440\u0442: /dev/ttyUSB0", None)) # retranslateUi