Exemplo n.º 1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(622, 580)
        self.widget = QtGui.QWidget(Form)
        self.widget.setGeometry(QtCore.QRect(22, 31, 586, 502))
        self.widget.setObjectName("widget")
        self.verticalLayout = QtGui.QVBoxLayout(self.widget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.qwtPlot = QwtPlot(self.widget)
        self.qwtPlot.setMinimumSize(QtCore.QSize(0, 250))
        self.qwtPlot.setObjectName("qwtPlot")
        self.verticalLayout.addWidget(self.qwtPlot)
        spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout = QtGui.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem1 = QtGui.QSpacerItem(28, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem1)
        self.tableView = QtGui.QTableView(self.widget)
        self.tableView.setMinimumSize(QtCore.QSize(550, 200))
        self.tableView.setObjectName("tableView")
        self.tableView.horizontalHeader().setCascadingSectionResizes(True)
        self.tableView.horizontalHeader().setShowSortIndicator(True)
        self.tableView.horizontalHeader().setStretchLastSection(True)
        self.horizontalLayout.addWidget(self.tableView)
        self.verticalLayout.addLayout(self.horizontalLayout)

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

    def retranslateUi(self, Form):
        Form.setWindowTitle(QtGui.QApplication.translate("Form", "Form", None, QtGui.QApplication.UnicodeUTF8))
Exemplo n.º 2
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName(_fromUtf8("MainWindow"))
        MainWindow.resize(702, 647)
        self.centralwidget = QtGui.QWidget(MainWindow)
        self.centralwidget.setObjectName(_fromUtf8("centralwidget"))
        self.formLayout = QtGui.QFormLayout(self.centralwidget)
        self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
        self.formLayout.setObjectName(_fromUtf8("formLayout"))
        self.label = QtGui.QLabel(self.centralwidget)
        self.label.setObjectName(_fromUtf8("label"))
        self.formLayout.setWidget(0, QtGui.QFormLayout.FieldRole, self.label)
        self.portName = QtGui.QLineEdit(self.centralwidget)
        self.portName.setObjectName(_fromUtf8("portName"))
        self.formLayout.setWidget(1, QtGui.QFormLayout.FieldRole, self.portName)
        self.label_2 = QtGui.QLabel(self.centralwidget)
        self.label_2.setObjectName(_fromUtf8("label_2"))
        self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.label_2)
        self.baudRate = QtGui.QLineEdit(self.centralwidget)
        self.baudRate.setObjectName(_fromUtf8("baudRate"))
        self.formLayout.setWidget(6, QtGui.QFormLayout.FieldRole, self.baudRate)
        self.btnListen = QtGui.QPushButton(self.centralwidget)
        self.btnListen.setObjectName(_fromUtf8("btnListen"))
        self.formLayout.setWidget(7, QtGui.QFormLayout.FieldRole, self.btnListen)
        self.btnShutdown = QtGui.QPushButton(self.centralwidget)
        self.btnShutdown.setObjectName(_fromUtf8("btnShutdown"))
        self.formLayout.setWidget(8, QtGui.QFormLayout.FieldRole, self.btnShutdown)
        self.fieldDisplay = QtGui.QListWidget(self.centralwidget)
        self.fieldDisplay.setObjectName(_fromUtf8("fieldDisplay"))
        self.formLayout.setWidget(9, QtGui.QFormLayout.FieldRole, self.fieldDisplay)
        self.qwtPlot = QwtPlot(self.centralwidget)
        self.qwtPlot.setMinimumSize(QtCore.QSize(678, 211))
        self.qwtPlot.setObjectName(_fromUtf8("qwtPlot"))
        self.formLayout.setWidget(10, QtGui.QFormLayout.FieldRole, self.qwtPlot)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtGui.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 702, 25))
        self.menubar.setObjectName(_fromUtf8("menubar"))
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtGui.QStatusBar(MainWindow)
        self.statusbar.setObjectName(_fromUtf8("statusbar"))
        MainWindow.setStatusBar(self.statusbar)

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

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None))
        self.label.setText(_translate("MainWindow", "Port Name", None))
        self.label_2.setText(_translate("MainWindow", "Baud Rate", None))
        self.btnListen.setText(_translate("MainWindow", "Listen", None))
        self.btnShutdown.setText(_translate("MainWindow", "ShutDown", None))