コード例 #1
0
ファイル: ui_debug_dialog.py プロジェクト: nmix/sgo
    def setupUi(self, DebugDialog):
        DebugDialog.setObjectName(_fromUtf8("DebugDialog"))
        DebugDialog.resize(400, 300)
        DebugDialog.setMinimumSize(QtCore.QSize(400, 300))
        DebugDialog.setMaximumSize(QtCore.QSize(400, 300))
        self.verticalLayout = QtGui.QVBoxLayout(DebugDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(DebugDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pte = PlainTextEdit(DebugDialog)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Consolas"))
        font.setPointSize(12)
        self.pte.setFont(font)
        self.pte.setObjectName(_fromUtf8("pte"))
        self.verticalLayout.addWidget(self.pte)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.lblByteCount = QtGui.QLabel(DebugDialog)
        self.lblByteCount.setObjectName(_fromUtf8("lblByteCount"))
        self.horizontalLayout.addWidget(self.lblByteCount)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnSend = QtGui.QPushButton(DebugDialog)
        self.btnSend.setObjectName(_fromUtf8("btnSend"))
        self.horizontalLayout.addWidget(self.btnSend)
        self.verticalLayout.addLayout(self.horizontalLayout)

        self.retranslateUi(DebugDialog)
        QtCore.QMetaObject.connectSlotsByName(DebugDialog)
コード例 #2
0
ファイル: ui_debug_dialog.py プロジェクト: nmix/sgo
class Ui_DebugDialog(object):
    def setupUi(self, DebugDialog):
        DebugDialog.setObjectName(_fromUtf8("DebugDialog"))
        DebugDialog.resize(400, 300)
        DebugDialog.setMinimumSize(QtCore.QSize(400, 300))
        DebugDialog.setMaximumSize(QtCore.QSize(400, 300))
        self.verticalLayout = QtGui.QVBoxLayout(DebugDialog)
        self.verticalLayout.setObjectName(_fromUtf8("verticalLayout"))
        self.label = QtGui.QLabel(DebugDialog)
        self.label.setObjectName(_fromUtf8("label"))
        self.verticalLayout.addWidget(self.label)
        self.pte = PlainTextEdit(DebugDialog)
        font = QtGui.QFont()
        font.setFamily(_fromUtf8("Consolas"))
        font.setPointSize(12)
        self.pte.setFont(font)
        self.pte.setObjectName(_fromUtf8("pte"))
        self.verticalLayout.addWidget(self.pte)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout"))
        self.lblByteCount = QtGui.QLabel(DebugDialog)
        self.lblByteCount.setObjectName(_fromUtf8("lblByteCount"))
        self.horizontalLayout.addWidget(self.lblByteCount)
        spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.btnSend = QtGui.QPushButton(DebugDialog)
        self.btnSend.setObjectName(_fromUtf8("btnSend"))
        self.horizontalLayout.addWidget(self.btnSend)
        self.verticalLayout.addLayout(self.horizontalLayout)

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

    def retranslateUi(self, DebugDialog):
        DebugDialog.setWindowTitle(_translate("DebugDialog", "Установка состояния СЖО", None))
        self.label.setText(_translate("DebugDialog", "Байты вводить через пробел в HEX-формате", None))
        self.lblByteCount.setText(_translate("DebugDialog", "Количество байтов", None))
        self.btnSend.setText(_translate("DebugDialog", "Отправить", None))