Esempio n. 1
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(800, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(20, 0, 55, 16))
        self.label.setObjectName("label")
        self.textEdit = QtWidgets.QTextEdit(self.centralwidget)
        self.textEdit.setGeometry(QtCore.QRect(20, 20, 611, 141))
        self.textEdit.setObjectName("textEdit")
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setGeometry(QtCore.QRect(640, 20, 151, 141))
        self.pushButton.setObjectName("pushButton")
        self.tableWidget = QtWidgets.QTableWidget(self.centralwidget)
        self.tableWidget.setGeometry(QtCore.QRect(20, 220, 761, 311))
        self.tableWidget.setObjectName("tableWidget")
        self.tableWidget.setColumnCount(0)
        self.tableWidget.setRowCount(0)
        self.label_2 = QtWidgets.QLabel(self.centralwidget)
        self.label_2.setGeometry(QtCore.QRect(20, 180, 241, 16))
        self.label_2.setObjectName("label_2")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 800, 26))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 2
0
    def setupUi(self, MainWindow):
        MainWindow.resize(764, 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.price_box = QtWidgets.QTextEdit(self.centralwidget)
        self.price_box.setGeometry(QtCore.QRect(220, 140, 104, 64))
        self.price_box.setObjectName("price_box")
        self.Taxbox = QtWidgets.QLabel(self.centralwidget)
        self.Taxbox.setGeometry(QtCore.QRect(100, 170, 47, 13))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.Taxbox.setFont(font)
        self.Taxbox.setObjectName("Taxbox")
        self.tax_rate = QtWidgets.QSpinBox(self.centralwidget)
        self.tax_rate.setGeometry(QtCore.QRect(240, 260, 61, 31))
        self.tax_rate.setProperty("value", 20)
        self.tax_rate.setObjectName("tax_rate")
        self.calc_tax_button = QtWidgets.QPushButton(self.centralwidget)
        self.calc_tax_button.setGeometry(QtCore.QRect(160, 350, 131, 41))
        self.calc_tax_button.setObjectName("calc_tax_button")
        self.TaxRate = QtWidgets.QLabel(self.centralwidget)
        self.TaxRate.setGeometry(QtCore.QRect(100, 270, 47, 13))
        font = QtGui.QFont()
        font.setPointSize(12)
        self.TaxRate.setFont(font)
        self.TaxRate.setObjectName("TaxRate")
        self.results_window = QtWidgets.QTextEdit(self.centralwidget)
        self.results_window.setGeometry(QtCore.QRect(170, 430, 104, 64))
        self.results_window.setObjectName("results_window")
        self.label = QtWidgets.QLabel(self.centralwidget)
        self.label.setGeometry(QtCore.QRect(180, 50, 361, 81))
        font = QtGui.QFont()
        font.setPointSize(24)
        self.label.setFont(font)
        self.label.setLineWidth(5)
        self.label.setTextFormat(QtCore.Qt.AutoText)
        self.label.setObjectName("label")
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 764, 18))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Esempio n. 3
0
    def all_id(self, result):
        self.font = QtGui.QFont()
        self.font.setBold(True)
        self.rez = result
        for row in result:
            rowitem = row[0]
            self.g = QtWidgets.QGroupBox(self.ui.scrollAreaWidgetContents)
            self.g.setMinimumSize(QtCore.QSize(120, 40))
            self.g.setMaximumSize(QtCore.QSize(120, 40))
            self.g.setTitle("")
            self.g.setObjectName("gb_x")
            self.h = QtWidgets.QHBoxLayout(self.g)
            self.h.setContentsMargins(0, -1, 0, -1)
            self.h.setObjectName("horizontalLayout_x")

            self.l1 = QtWidgets.QLabel(self.g)
            self.l1.setLineWidth(10)
            self.l1.setObjectName("label_id_xx")
            self.l1.setText("id")
            self.l1.setFont(self.font)
            self.h.addWidget(self.l1)

            self.line1 = QtWidgets.QLineEdit(self.g)
            self.line1.setObjectName("lineEdit_id_x")
            self.line1.setText(str(rowitem))
            self.h.addWidget(self.line1)

            self.ui.verticalLayout.addWidget(self.g)
            self.ui.scrollArea.setWidget(self.ui.scrollAreaWidgetContents)

        self.ui.label_com.setFont(QtGui.QFont("Times", 10, QtGui.QFont.Bold))
        self.ui.label_com.setText(
            "Выберите из представленных номеров, тот который требуется отобразить!"
        )