예제 #1
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(640, 480)
        self.gridLayoutWidget = QtWidgets.QWidget(Form)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(9, 9, 621, 461))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.open_pb = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.open_pb.setObjectName("open_pb")
        self.horizontalLayout_2.addWidget(self.open_pb)
        self.save_pb = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.save_pb.setObjectName("save_pb")
        self.horizontalLayout_2.addWidget(self.save_pb)
        self.add_pb = QtWidgets.QPushButton(self.gridLayoutWidget)
        self.add_pb.setObjectName("add_pb")
        self.horizontalLayout_2.addWidget(self.add_pb)
        self.gridLayout_2.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
        self.graphicsView = MyGraphicsView(self.gridLayoutWidget)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout_2.addWidget(self.graphicsView, 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.open_pb.setText(_translate("Form", "Open"))
        self.save_pb.setText(_translate("Form", "Save"))
        self.add_pb.setText(_translate("Form", "Add"))
예제 #2
0
class Ui_panelwindow(Ui_window):
    def setupUi(self, window, width=300, height=300):
        super(Ui_panelwindow, self).setupUi(window, width, height)
        self.gv = MyGraphicsView(self.wcenter)
        self.gv.setObjectName("gv")
        self.centerLayout.addWidget(self.gv)
예제 #3
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.resize(800, 600)
        self.actionQuit = QAction(MainWindow)
        self.actionQuit.setObjectName(u"actionQuit")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout = QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.buttonMonitorX = QToolButton(self.centralwidget)
        self.buttonMonitorX.setObjectName(u"buttonMonitorX")
        self.buttonMonitorX.setCheckable(True)

        self.horizontalLayout.addWidget(self.buttonMonitorX)

        self.buttonMonitorY = QToolButton(self.centralwidget)
        self.buttonMonitorY.setObjectName(u"buttonMonitorY")
        self.buttonMonitorY.setCheckable(True)

        self.horizontalLayout.addWidget(self.buttonMonitorY)

        self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding,
                                            QSizePolicy.Minimum)

        self.horizontalLayout.addItem(self.horizontalSpacer)

        self.verticalLayout.addLayout(self.horizontalLayout)

        self.graphicsView = MyGraphicsView(self.centralwidget)
        self.graphicsView.setObjectName(u"graphicsView")

        self.verticalLayout.addWidget(self.graphicsView)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 800, 35))
        self.menuFile = QMenu(self.menubar)
        self.menuFile.setObjectName(u"menuFile")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QStatusBar(MainWindow)
        self.statusbar.setObjectName(u"statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.menubar.addAction(self.menuFile.menuAction())

        self.retranslateUi(MainWindow)

        QMetaObject.connectSlotsByName(MainWindow)

    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(
            QCoreApplication.translate("MainWindow", u"MainWindow", None))
        self.actionQuit.setText(
            QCoreApplication.translate("MainWindow", u"Quit", None))
        self.buttonMonitorX.setText(
            QCoreApplication.translate("MainWindow", u"Monitor mouse X", None))
        self.buttonMonitorY.setText(
            QCoreApplication.translate("MainWindow", u"Monitor mouse Y", None))
        self.menuFile.setTitle(
            QCoreApplication.translate("MainWindow", u"File", None))
예제 #4
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(640, 647)
        self.gridLayoutWidget = QtWidgets.QWidget(Form)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(9, 9, 621, 631))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView = MyGraphicsView(self.gridLayoutWidget)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(self.gridLayoutWidget)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.gridLayoutWidget_2 = QtWidgets.QWidget(self.tab)
        self.gridLayoutWidget_2.setGeometry(QtCore.QRect(9, 9, 601, 271))
        self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget_2)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.from_x_ledit = QtWidgets.QLineEdit(self.gridLayoutWidget_2)
        self.from_x_ledit.setObjectName("from_x_ledit")
        self.gridLayout_2.addWidget(self.from_x_ledit, 1, 1, 1, 1)
        self.to_x_ledit = QtWidgets.QLineEdit(self.gridLayoutWidget_2)
        self.to_x_ledit.setObjectName("to_x_ledit")
        self.gridLayout_2.addWidget(self.to_x_ledit, 2, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.gridLayoutWidget_2)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_2.addWidget(self.label_2, 1, 0, 1, 1)
        self.a_ledit = QtWidgets.QLineEdit(self.gridLayoutWidget_2)
        self.a_ledit.setObjectName("a_ledit")
        self.gridLayout_2.addWidget(self.a_ledit, 0, 1, 1, 1)
        self.num_ledit = QtWidgets.QLineEdit(self.gridLayoutWidget_2)
        self.num_ledit.setObjectName("num_ledit")
        self.gridLayout_2.addWidget(self.num_ledit, 3, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.gridLayoutWidget_2)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_2.addWidget(self.label_3, 2, 0, 1, 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.build_pb = QtWidgets.QPushButton(self.gridLayoutWidget_2)
        self.build_pb.setObjectName("build_pb")
        self.horizontalLayout.addWidget(self.build_pb)
        self.gridLayout_2.addLayout(self.horizontalLayout, 5, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.gridLayoutWidget_2)
        self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 3, 0, 1, 1)
        self.label = QtWidgets.QLabel(self.gridLayoutWidget_2)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem1, 4, 1, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem2, 4, 0, 2, 1)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayoutWidget_2 = QtWidgets.QWidget(self.tab_2)
        self.horizontalLayoutWidget_2.setGeometry(QtCore.QRect(9, 9, 601, 271))
        self.horizontalLayoutWidget_2.setObjectName("horizontalLayoutWidget_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget_2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout()
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.label_6 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.label_6.setEnabled(True)
        self.label_6.setMinimumSize(QtCore.QSize(0, 22))
        self.label_6.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_5.addWidget(self.label_6)
        self.label_5 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.label_5.setEnabled(True)
        self.label_5.setMinimumSize(QtCore.QSize(0, 22))
        self.label_5.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_5.addWidget(self.label_5)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem3)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_5.addItem(spacerItem4)
        self.horizontalLayout_3.addLayout(self.verticalLayout_5)
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.move_x_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.move_x_ledit.setObjectName("move_x_ledit")
        self.verticalLayout_3.addWidget(self.move_x_ledit)
        self.move_y_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.move_y_ledit.setObjectName("move_y_ledit")
        self.verticalLayout_3.addWidget(self.move_y_ledit)
        spacerItem5 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_3.addItem(spacerItem5)
        self.move_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget_2)
        self.move_pb.setObjectName("move_pb")
        self.verticalLayout_3.addWidget(self.move_pb)
        self.horizontalLayout_3.addLayout(self.verticalLayout_3)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_3)
        self.line = QtWidgets.QFrame(self.horizontalLayoutWidget_2)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_2.addWidget(self.line)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout()
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.label_7 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.label_7.setMinimumSize(QtCore.QSize(0, 23))
        self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_6.addWidget(self.label_7)
        self.label_9 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.label_9.setMinimumSize(QtCore.QSize(0, 23))
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName("label_9")
        self.verticalLayout_6.addWidget(self.label_9)
        self.label_8 = QtWidgets.QLabel(self.horizontalLayoutWidget_2)
        self.label_8.setMinimumSize(QtCore.QSize(0, 23))
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_6.addWidget(self.label_8)
        spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem6)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.verticalLayout_6.addItem(spacerItem7)
        self.horizontalLayout_4.addLayout(self.verticalLayout_6)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.rotate_x_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.rotate_x_ledit.setObjectName("rotate_x_ledit")
        self.verticalLayout_7.addWidget(self.rotate_x_ledit)
        self.rotate_y_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.rotate_y_ledit.setObjectName("rotate_y_ledit")
        self.verticalLayout_7.addWidget(self.rotate_y_ledit)
        self.rotate_angle_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget_2)
        self.rotate_angle_ledit.setObjectName("rotate_angle_ledit")
        self.verticalLayout_7.addWidget(self.rotate_angle_ledit)
        spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_7.addItem(spacerItem8)
        self.rotate_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget_2)
        self.rotate_pb.setObjectName("rotate_pb")
        self.verticalLayout_7.addWidget(self.rotate_pb)
        self.horizontalLayout_4.addLayout(self.verticalLayout_7)
        self.horizontalLayout_2.addLayout(self.horizontalLayout_4)
        self.tabWidget.addTab(self.tab_2, "")
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)

        self.retranslateUi(Form)
        self.tabWidget.setCurrentIndex(1)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.from_x_ledit.setText(_translate("Form", "-200"))
        self.to_x_ledit.setText(_translate("Form", "200"))
        self.label_2.setText(_translate("Form", "от Х"))
        self.a_ledit.setText(_translate("Form", "30"))
        self.num_ledit.setText(_translate("Form", "100"))
        self.label_3.setText(_translate("Form", "до Х"))
        self.build_pb.setText(_translate("Form", "Построить"))
        self.label_4.setText(_translate("Form", "количество точек"))
        self.label.setText(_translate("Form", "а"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "Построение"))
        self.label_6.setText(_translate("Form", "X"))
        self.label_5.setText(_translate("Form", "Y"))
        self.move_x_ledit.setText(_translate("Form", "0"))
        self.move_y_ledit.setText(_translate("Form", "0"))
        self.move_pb.setText(_translate("Form", "Переместить"))
        self.label_7.setText(_translate("Form", "X"))
        self.label_9.setText(_translate("Form", "Y"))
        self.label_8.setText(_translate("Form", "угол поворота"))
        self.rotate_x_ledit.setText(_translate("Form", "0"))
        self.rotate_y_ledit.setText(_translate("Form", "0"))
        self.rotate_angle_ledit.setText(_translate("Form", "0"))
        self.rotate_pb.setText(_translate("Form", "Вращать"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Преобразование"))
예제 #5
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(640, 480)
        self.horizontalLayoutWidget = QtWidgets.QWidget(Form)
        self.horizontalLayoutWidget.setGeometry(QtCore.QRect(9, 9, 621, 461))
        self.horizontalLayoutWidget.setObjectName("horizontalLayoutWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalLayoutWidget)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.graphicsView = MyGraphicsView(self.horizontalLayoutWidget)
        self.graphicsView.setObjectName("graphicsView")
        self.horizontalLayout.addWidget(self.graphicsView)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_2 = QtWidgets.QLabel(self.horizontalLayoutWidget)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.x_angle_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
        self.x_angle_ledit.setObjectName("x_angle_ledit")
        self.gridLayout.addWidget(self.x_angle_ledit, 0, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.horizontalLayoutWidget)
        self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.z_angle_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
        self.z_angle_ledit.setObjectName("z_angle_ledit")
        self.gridLayout.addWidget(self.z_angle_ledit, 2, 1, 1, 1)
        self.y_angle_ledit = QtWidgets.QLineEdit(self.horizontalLayoutWidget)
        self.y_angle_ledit.setObjectName("y_angle_ledit")
        self.gridLayout.addWidget(self.y_angle_ledit, 1, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.horizontalLayoutWidget)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.rotate_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.rotate_pb.setObjectName("rotate_pb")
        self.gridLayout.addWidget(self.rotate_pb, 3, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 3, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.line = QtWidgets.QFrame(self.horizontalLayoutWidget)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.move_right_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.move_right_pb.setObjectName("move_right_pb")
        self.gridLayout_2.addWidget(self.move_right_pb, 1, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.horizontalLayoutWidget)
        self.label_4.setText("")
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_2.addWidget(self.label_4, 1, 1, 1, 1)
        self.move_left_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.move_left_pb.setObjectName("move_left_pb")
        self.gridLayout_2.addWidget(self.move_left_pb, 1, 0, 1, 1)
        self.move_up_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.move_up_pb.setObjectName("move_up_pb")
        self.gridLayout_2.addWidget(self.move_up_pb, 0, 1, 1, 1)
        self.move_down_pb = QtWidgets.QPushButton(self.horizontalLayoutWidget)
        self.move_down_pb.setObjectName("move_down_pb")
        self.gridLayout_2.addWidget(self.move_down_pb, 2, 1, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout_2)
        self.horizontalLayout.addLayout(self.verticalLayout)

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

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.label_2.setText(_translate("Form", "Y"))
        self.x_angle_ledit.setText(_translate("Form", "0"))
        self.label_3.setText(_translate("Form", "Z"))
        self.z_angle_ledit.setText(_translate("Form", "0"))
        self.y_angle_ledit.setText(_translate("Form", "0"))
        self.label.setText(_translate("Form", "X"))
        self.rotate_pb.setText(_translate("Form", "Rotate"))
        self.move_right_pb.setText(_translate("Form", "RIGHT"))
        self.move_left_pb.setText(_translate("Form", "LEFT"))
        self.move_up_pb.setText(_translate("Form", "UP"))
        self.move_down_pb.setText(_translate("Form", "DOWN"))
예제 #6
0
class Ui_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(461, 800)
        self.horizontalLayout = QtWidgets.QHBoxLayout(Form)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView = MyGraphicsView(Form)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 1)
        self.tabWidget = QtWidgets.QTabWidget(Form)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.tab)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 10, 2, 1, 1)
        self.draw_lab0_btn = QtWidgets.QPushButton(self.tab)
        self.draw_lab0_btn.setObjectName("draw_lab0_btn")
        self.gridLayout_2.addWidget(self.draw_lab0_btn, 11, 2, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_2.addItem(spacerItem1, 11, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.tab)
        self.label.setText("")
        self.label.setPixmap(QtGui.QPixmap("../../test.jpg"))
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 12, 1)
        self.diag_size_lbl = QtWidgets.QLabel(self.tab)
        self.diag_size_lbl.setObjectName("diag_size_lbl")
        self.gridLayout_2.addWidget(self.diag_size_lbl, 0, 1, 1, 2)
        self.diag_size_ledit = QtWidgets.QLineEdit(self.tab)
        self.diag_size_ledit.setObjectName("diag_size_ledit")
        self.gridLayout_2.addWidget(self.diag_size_ledit, 1, 1, 1, 2)
        self.big_rad_lbl = QtWidgets.QLabel(self.tab)
        self.big_rad_lbl.setObjectName("big_rad_lbl")
        self.gridLayout_2.addWidget(self.big_rad_lbl, 2, 1, 1, 2)
        self.big_rad_ledit = QtWidgets.QLineEdit(self.tab)
        self.big_rad_ledit.setObjectName("big_rad_ledit")
        self.gridLayout_2.addWidget(self.big_rad_ledit, 3, 1, 1, 2)
        self.lit_rad_lbl = QtWidgets.QLabel(self.tab)
        self.lit_rad_lbl.setObjectName("lit_rad_lbl")
        self.gridLayout_2.addWidget(self.lit_rad_lbl, 4, 1, 1, 2)
        self.lit_rad_ledit = QtWidgets.QLineEdit(self.tab)
        self.lit_rad_ledit.setObjectName("lit_rad_ledit")
        self.gridLayout_2.addWidget(self.lit_rad_ledit, 5, 1, 1, 2)
        self.hor_rad_lbl = QtWidgets.QLabel(self.tab)
        self.hor_rad_lbl.setObjectName("hor_rad_lbl")
        self.gridLayout_2.addWidget(self.hor_rad_lbl, 6, 1, 1, 2)
        self.hor_rad_ledit = QtWidgets.QLineEdit(self.tab)
        self.hor_rad_ledit.setObjectName("hor_rad_ledit")
        self.gridLayout_2.addWidget(self.hor_rad_ledit, 7, 1, 1, 2)
        self.ver_rad_lbl = QtWidgets.QLabel(self.tab)
        self.ver_rad_lbl.setObjectName("ver_rad_lbl")
        self.gridLayout_2.addWidget(self.ver_rad_lbl, 8, 1, 1, 2)
        self.ver_rad_ledit = QtWidgets.QLineEdit(self.tab)
        self.ver_rad_ledit.setObjectName("ver_rad_ledit")
        self.gridLayout_2.addWidget(self.ver_rad_ledit, 9, 1, 1, 2)
        self.label_7 = QtWidgets.QLabel(self.tab)
        self.label_7.setText("")
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 10, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_2)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.tab_2)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.gridLayout_3 = QtWidgets.QGridLayout()
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.tabWidget_2 = QtWidgets.QTabWidget(self.tab_2)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_8 = QtWidgets.QWidget()
        self.tab_8.setObjectName("tab_8")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.tab_8)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.gridLayout_6 = QtWidgets.QGridLayout()
        self.gridLayout_6.setObjectName("gridLayout_6")
        self.mv_axis_y_evk_ledit = QtWidgets.QLineEdit(self.tab_8)
        self.mv_axis_y_evk_ledit.setObjectName("mv_axis_y_evk_ledit")
        self.gridLayout_6.addWidget(self.mv_axis_y_evk_ledit, 1, 1, 1, 1)
        self.mv_axis_x_evk_ledit = QtWidgets.QLineEdit(self.tab_8)
        self.mv_axis_x_evk_ledit.setObjectName("mv_axis_x_evk_ledit")
        self.gridLayout_6.addWidget(self.mv_axis_x_evk_ledit, 1, 0, 1, 1)
        self.move_evk_btn = QtWidgets.QPushButton(self.tab_8)
        self.move_evk_btn.setObjectName("move_evk_btn")
        self.gridLayout_6.addWidget(self.move_evk_btn, 1, 4, 1, 1)
        self.label_16 = QtWidgets.QLabel(self.tab_8)
        self.label_16.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_16.setObjectName("label_16")
        self.gridLayout_6.addWidget(self.label_16, 2, 2, 1, 1)
        self.label_14 = QtWidgets.QLabel(self.tab_8)
        self.label_14.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_14.setObjectName("label_14")
        self.gridLayout_6.addWidget(self.label_14, 2, 0, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem2, 1, 2, 1, 2)
        self.rotate_evk_btn = QtWidgets.QPushButton(self.tab_8)
        self.rotate_evk_btn.setObjectName("rotate_evk_btn")
        self.gridLayout_6.addWidget(self.rotate_evk_btn, 3, 4, 1, 1)
        self.label_15 = QtWidgets.QLabel(self.tab_8)
        self.label_15.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_15.setObjectName("label_15")
        self.gridLayout_6.addWidget(self.label_15, 2, 1, 1, 1)
        self.rt_angle_evk_ledit = QtWidgets.QLineEdit(self.tab_8)
        self.rt_angle_evk_ledit.setObjectName("rt_angle_evk_ledit")
        self.gridLayout_6.addWidget(self.rt_angle_evk_ledit, 3, 2, 1, 1)
        self.rt_x_center_evk_ledit = QtWidgets.QLineEdit(self.tab_8)
        self.rt_x_center_evk_ledit.setObjectName("rt_x_center_evk_ledit")
        self.gridLayout_6.addWidget(self.rt_x_center_evk_ledit, 3, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_6.addItem(spacerItem3, 3, 3, 1, 1)
        self.rt_y_center_evk_ledit = QtWidgets.QLineEdit(self.tab_8)
        self.rt_y_center_evk_ledit.setObjectName("rt_y_center_evk_ledit")
        self.gridLayout_6.addWidget(self.rt_y_center_evk_ledit, 3, 1, 1, 1)
        self.label_18 = QtWidgets.QLabel(self.tab_8)
        self.label_18.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_18.setObjectName("label_18")
        self.gridLayout_6.addWidget(self.label_18, 0, 1, 1, 1)
        self.label_17 = QtWidgets.QLabel(self.tab_8)
        self.label_17.setAlignment(QtCore.Qt.AlignBottom|QtCore.Qt.AlignHCenter)
        self.label_17.setObjectName("label_17")
        self.gridLayout_6.addWidget(self.label_17, 0, 0, 1, 1)
        self.horizontalLayout_6.addLayout(self.gridLayout_6)
        self.tabWidget_2.addTab(self.tab_8, "")
        self.tab_9 = QtWidgets.QWidget()
        self.tab_9.setObjectName("tab_9")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.tab_9)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.vec_y_1_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_y_1_ledit.setObjectName("vec_y_1_ledit")
        self.gridLayout_4.addWidget(self.vec_y_1_ledit, 1, 3, 1, 1)
        self.vec_r0_2_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_r0_2_ledit.setObjectName("vec_r0_2_ledit")
        self.gridLayout_4.addWidget(self.vec_r0_2_ledit, 2, 4, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.tab_9)
        self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 0, 1, 1, 1)
        self.vec_r0_0_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_r0_0_ledit.setObjectName("vec_r0_0_ledit")
        self.gridLayout_4.addWidget(self.vec_r0_0_ledit, 2, 2, 1, 1)
        self.label_9 = QtWidgets.QLabel(self.tab_9)
        self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 1, 1, 1, 1)
        self.vec_y_0_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_y_0_ledit.setObjectName("vec_y_0_ledit")
        self.gridLayout_4.addWidget(self.vec_y_0_ledit, 1, 2, 1, 1)
        self.vec_x_0_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_x_0_ledit.setObjectName("vec_x_0_ledit")
        self.gridLayout_4.addWidget(self.vec_x_0_ledit, 0, 2, 1, 1)
        self.vec_x_2_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_x_2_ledit.setObjectName("vec_x_2_ledit")
        self.gridLayout_4.addWidget(self.vec_x_2_ledit, 0, 4, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.tab_9)
        self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 2, 1, 1, 1)
        self.vec_r0_1_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_r0_1_ledit.setObjectName("vec_r0_1_ledit")
        self.gridLayout_4.addWidget(self.vec_r0_1_ledit, 2, 3, 1, 1)
        self.vec_x_1_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_x_1_ledit.setObjectName("vec_x_1_ledit")
        self.gridLayout_4.addWidget(self.vec_x_1_ledit, 0, 3, 1, 1)
        self.vec_y_2_ledit = QtWidgets.QLineEdit(self.tab_9)
        self.vec_y_2_ledit.setObjectName("vec_y_2_ledit")
        self.gridLayout_4.addWidget(self.vec_y_2_ledit, 1, 4, 1, 1)
        self.draw_lab1_transform_btn = QtWidgets.QPushButton(self.tab_9)
        self.draw_lab1_transform_btn.setObjectName("draw_lab1_transform_btn")
        self.gridLayout_4.addWidget(self.draw_lab1_transform_btn, 1, 0, 1, 1)
        self.transform_lab1_transform_btn = QtWidgets.QPushButton(self.tab_9)
        self.transform_lab1_transform_btn.setObjectName("transform_lab1_transform_btn")
        self.gridLayout_4.addWidget(self.transform_lab1_transform_btn, 2, 0, 1, 1)
        spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_4.addItem(spacerItem4, 0, 0, 1, 1)
        self.horizontalLayout_4.addLayout(self.gridLayout_4)
        self.tabWidget_2.addTab(self.tab_9, "")
        self.tab_10 = QtWidgets.QWidget()
        self.tab_10.setObjectName("tab_10")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.tab_10)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.gridLayout_5 = QtWidgets.QGridLayout()
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.ry_1_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.ry_1_afin_ledit.setObjectName("ry_1_afin_ledit")
        self.gridLayout_5.addWidget(self.ry_1_afin_ledit, 1, 3, 1, 1)
        self.rx_0_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.rx_0_afin_ledit.setObjectName("rx_0_afin_ledit")
        self.gridLayout_5.addWidget(self.rx_0_afin_ledit, 0, 2, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.tab_10)
        self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_11.setObjectName("label_11")
        self.gridLayout_5.addWidget(self.label_11, 0, 1, 1, 1)
        self.r0_1_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.r0_1_afin_ledit.setObjectName("r0_1_afin_ledit")
        self.gridLayout_5.addWidget(self.r0_1_afin_ledit, 2, 3, 1, 1)
        self.rx_1_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.rx_1_afin_ledit.setObjectName("rx_1_afin_ledit")
        self.gridLayout_5.addWidget(self.rx_1_afin_ledit, 0, 3, 1, 1)
        self.r0_0_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.r0_0_afin_ledit.setObjectName("r0_0_afin_ledit")
        self.gridLayout_5.addWidget(self.r0_0_afin_ledit, 2, 2, 1, 1)
        self.label_12 = QtWidgets.QLabel(self.tab_10)
        self.label_12.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_12.setObjectName("label_12")
        self.gridLayout_5.addWidget(self.label_12, 1, 1, 1, 1)
        self.ry_0_afin_ledit = QtWidgets.QLineEdit(self.tab_10)
        self.ry_0_afin_ledit.setObjectName("ry_0_afin_ledit")
        self.gridLayout_5.addWidget(self.ry_0_afin_ledit, 1, 2, 1, 1)
        self.label_13 = QtWidgets.QLabel(self.tab_10)
        self.label_13.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_13.setObjectName("label_13")
        self.gridLayout_5.addWidget(self.label_13, 2, 1, 1, 1)
        self.draw_lab1_afin_btn = QtWidgets.QPushButton(self.tab_10)
        self.draw_lab1_afin_btn.setObjectName("draw_lab1_afin_btn")
        self.gridLayout_5.addWidget(self.draw_lab1_afin_btn, 1, 0, 1, 1)
        self.transform_lab1_afin_btn = QtWidgets.QPushButton(self.tab_10)
        self.transform_lab1_afin_btn.setObjectName("transform_lab1_afin_btn")
        self.gridLayout_5.addWidget(self.transform_lab1_afin_btn, 2, 0, 1, 1)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout_5.addItem(spacerItem5, 0, 0, 1, 1)
        self.horizontalLayout_5.addLayout(self.gridLayout_5)
        self.tabWidget_2.addTab(self.tab_10, "")
        self.gridLayout_3.addWidget(self.tabWidget_2, 0, 0, 1, 1)
        self.horizontalLayout_3.addLayout(self.gridLayout_3)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.tabWidget.addTab(self.tab_5, "")
        self.tab_7 = QtWidgets.QWidget()
        self.tab_7.setObjectName("tab_7")
        self.tabWidget.addTab(self.tab_7, "")
        self.gridLayout.addWidget(self.tabWidget, 1, 0, 1, 1)
        self.horizontalLayout.addLayout(self.gridLayout)

        self.retranslateUi(Form)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.draw_lab0_btn.setText(_translate("Form", "Draw"))
        self.diag_size_lbl.setText(_translate("Form", "Введите размер диагонали D"))
        self.big_rad_lbl.setText(_translate("Form", "Введите радиус R"))
        self.lit_rad_lbl.setText(_translate("Form", "Введите радиус r"))
        self.hor_rad_lbl.setText(_translate("Form", "Введите радиус r1"))
        self.ver_rad_lbl.setText(_translate("Form", "Введите радиус r2"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "Lab 0"))
        self.move_evk_btn.setText(_translate("Form", "Перемещение"))
        self.label_16.setText(_translate("Form", "угол поворота"))
        self.label_14.setText(_translate("Form", "X"))
        self.rotate_evk_btn.setText(_translate("Form", "Поворот"))
        self.label_15.setText(_translate("Form", "Y"))
        self.label_18.setText(_translate("Form", "Ось Y"))
        self.label_17.setText(_translate("Form", "Ось Х"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_8), _translate("Form", "Евклидовы"))
        self.vec_y_1_ledit.setText(_translate("Form", "-40"))
        self.vec_r0_2_ledit.setText(_translate("Form", "1000"))
        self.label_8.setText(_translate("Form", "X"))
        self.vec_r0_0_ledit.setText(_translate("Form", "0"))
        self.label_9.setText(_translate("Form", "Y"))
        self.vec_y_0_ledit.setText(_translate("Form", "80"))
        self.vec_x_0_ledit.setText(_translate("Form", "40"))
        self.vec_x_2_ledit.setText(_translate("Form", "3"))
        self.label_10.setText(_translate("Form", "R0"))
        self.vec_r0_1_ledit.setText(_translate("Form", "0"))
        self.vec_x_1_ledit.setText(_translate("Form", "90"))
        self.vec_y_2_ledit.setText(_translate("Form", "5"))
        self.draw_lab1_transform_btn.setText(_translate("Form", "Draw"))
        self.transform_lab1_transform_btn.setText(_translate("Form", "Transform"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_9), _translate("Form", "Проективные"))
        self.ry_1_afin_ledit.setText(_translate("Form", "0.86"))
        self.rx_0_afin_ledit.setText(_translate("Form", "0.86"))
        self.label_11.setText(_translate("Form", "Rx"))
        self.r0_1_afin_ledit.setText(_translate("Form", "0"))
        self.rx_1_afin_ledit.setText(_translate("Form", "0.5"))
        self.r0_0_afin_ledit.setText(_translate("Form", "0"))
        self.label_12.setText(_translate("Form", "Ry"))
        self.ry_0_afin_ledit.setText(_translate("Form", "-0.5"))
        self.label_13.setText(_translate("Form", "R0"))
        self.draw_lab1_afin_btn.setText(_translate("Form", "Draw"))
        self.transform_lab1_afin_btn.setText(_translate("Form", "Transform"))
        self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tab_10), _translate("Form", "Афинные"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Lab 1"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("Form", "Lab 2"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4), _translate("Form", "Lab 3"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("Form", "Lab 4"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_7), _translate("Form", "Lab 6"))