Exemplo n.º 1
0
    def __setupWidget(self):
        layout = QtWidgets.QHBoxLayout()
        splitter = QtWidgets.QSplitter(self)
        splitter.setOrientation(Qt.Horizontal)

        self.Figure = QmyFigureCanvas()

        splitter.addWidget(self.Figure)
        splitter.addWidget(self.ui.GraphDraw)
        splitter.setStretchFactor(3, 1)

        layout.addWidget(splitter)
        self.setLayout(layout)
Exemplo n.º 2
0
    def __setupWidget(self):
        layout = QtWidgets.QHBoxLayout()
        splitter = QtWidgets.QSplitter(self)
        splitterV = QtWidgets.QSplitter(self)
        splitterV.setOrientation(Qt.Vertical)

        splitterV.addWidget(self.ui.SetSignal)
        splitterV.addWidget(self.ui.SetNoise)

        self.Figure = QmyFigureCanvas()

        splitter.addWidget(splitterV)
        splitter.setSizes([100, 200])
        splitter.addWidget(self.Figure)
        splitter.setSizes([200, 600])

        layout.addWidget(splitter)
        self.setLayout(layout)
Exemplo n.º 3
0
    def setupUi(self, EEGLAB):
        EEGLAB.setObjectName("EEGLAB")
        EEGLAB.resize(781, 596)
        self.centralwidget = QtWidgets.QWidget(EEGLAB)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widget = QmyFigureCanvas(self.centralwidget)
        self.widget.setObjectName("widget")
        self.verticalLayout.addWidget(self.widget)
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        self.groupBox.setTitle("")
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.stream_left = QtWidgets.QPushButton(self.groupBox)
        self.stream_left.setText("")
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/610.bmp"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stream_left.setIcon(icon)
        self.stream_left.setObjectName("stream_left")
        self.horizontalLayout.addWidget(self.stream_left)
        self.stop = QtWidgets.QPushButton(self.groupBox)
        self.stop.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/624.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stop.setIcon(icon1)
        self.stop.setObjectName("stop")
        self.horizontalLayout.addWidget(self.stop)
        self.stream_continue = QtWidgets.QPushButton(self.groupBox)
        self.stream_continue.setText("")
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/620.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stream_continue.setIcon(icon2)
        self.stream_continue.setObjectName("stream_continue")
        self.horizontalLayout.addWidget(self.stream_continue)
        self.stream_right = QtWidgets.QPushButton(self.groupBox)
        self.stream_right.setText("")
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/612.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.stream_right.setIcon(icon3)
        self.stream_right.setObjectName("stream_right")
        self.horizontalLayout.addWidget(self.stream_right)
        spacerItem = QtWidgets.QSpacerItem(40, 20,
                                           QtWidgets.QSizePolicy.Expanding,
                                           QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.verticalLayout.addWidget(self.groupBox)
        self.verticalLayout.setStretch(0, 9)
        self.verticalLayout.setStretch(1, 1)
        EEGLAB.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(EEGLAB)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 781, 26))
        self.menubar.setObjectName("menubar")
        self.menuFile = QtWidgets.QMenu(self.menubar)
        self.menuFile.setObjectName("menuFile")
        self.menuSignals = QtWidgets.QMenu(self.menubar)
        self.menuSignals.setObjectName("menuSignals")
        self.menuFilter = QtWidgets.QMenu(self.menubar)
        self.menuFilter.setObjectName("menuFilter")
        self.menuTimesync = QtWidgets.QMenu(self.menubar)
        self.menuTimesync.setObjectName("menuTimesync")
        self.menuAnnotation = QtWidgets.QMenu(self.menubar)
        self.menuAnnotation.setObjectName("menuAnnotation")
        self.menushow = QtWidgets.QMenu(self.menubar)
        self.menushow.setObjectName("menushow")
        self.menuHelp = QtWidgets.QMenu(self.menubar)
        self.menuHelp.setObjectName("menuHelp")
        EEGLAB.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(EEGLAB)
        self.statusbar.setObjectName("statusbar")
        EEGLAB.setStatusBar(self.statusbar)
        self.actionOpen = QtWidgets.QAction(EEGLAB)
        self.actionOpen.setObjectName("actionOpen")
        self.actionOpen_stream = QtWidgets.QAction(EEGLAB)
        self.actionOpen_stream.setObjectName("actionOpen_stream")
        self.actionStart_Video = QtWidgets.QAction(EEGLAB)
        self.actionStart_Video.setObjectName("actionStart_Video")
        self.actionSave_as = QtWidgets.QAction(EEGLAB)
        self.actionSave_as.setObjectName("actionSave_as")
        self.actionExit = QtWidgets.QAction(EEGLAB)
        self.actionExit.setObjectName("actionExit")
        self.actionProperties = QtWidgets.QAction(EEGLAB)
        self.actionProperties.setObjectName("actionProperties")
        self.actionAdd = QtWidgets.QAction(EEGLAB)
        self.actionAdd.setObjectName("actionAdd")
        self.actionNew = QtWidgets.QAction(EEGLAB)
        self.actionNew.setObjectName("actionNew")
        self.actionAdjust = QtWidgets.QAction(EEGLAB)
        self.actionAdjust.setObjectName("actionAdjust")
        self.actionRemove_all = QtWidgets.QAction(EEGLAB)
        self.actionRemove_all.setObjectName("actionRemove_all")
        self.actionGo_to_start_of_file = QtWidgets.QAction(EEGLAB)
        self.actionGo_to_start_of_file.setObjectName(
            "actionGo_to_start_of_file")
        self.actionGo_to_end_of_file = QtWidgets.QAction(EEGLAB)
        self.actionGo_to_end_of_file.setObjectName("actionGo_to_end_of_file")
        self.actionJump_to = QtWidgets.QAction(EEGLAB)
        self.actionJump_to.setObjectName("actionJump_to")
        self.actionAnnotations = QtWidgets.QAction(EEGLAB)
        self.actionAnnotations.setObjectName("actionAnnotations")
        self.actionAnnotation_editor = QtWidgets.QAction(EEGLAB)
        self.actionAnnotation_editor.setObjectName("actionAnnotation_editor")
        self.actionPower_Spectrum = QtWidgets.QAction(EEGLAB)
        self.actionPower_Spectrum.setObjectName("actionPower_Spectrum")
        self.actionPhase = QtWidgets.QAction(EEGLAB)
        self.actionPhase.setObjectName("actionPhase")
        self.actionAbout_EEGLAB = QtWidgets.QAction(EEGLAB)
        self.actionAbout_EEGLAB.setObjectName("actionAbout_EEGLAB")
        self.actionVideos = QtWidgets.QAction(EEGLAB)
        self.actionVideos.setObjectName("actionVideos")
        self.actionTutor = QtWidgets.QAction(EEGLAB)
        self.actionTutor.setObjectName("actionTutor")
        self.menuFile.addAction(self.actionOpen)
        self.menuFile.addAction(self.actionOpen_stream)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionStart_Video)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionSave_as)
        self.menuFile.addSeparator()
        self.menuFile.addAction(self.actionExit)
        self.menuSignals.addAction(self.actionProperties)
        self.menuSignals.addAction(self.actionAdd)
        self.menuFilter.addAction(self.actionNew)
        self.menuFilter.addAction(self.actionAdjust)
        self.menuFilter.addAction(self.actionRemove_all)
        self.menuTimesync.addAction(self.actionGo_to_start_of_file)
        self.menuTimesync.addAction(self.actionGo_to_end_of_file)
        self.menuTimesync.addAction(self.actionJump_to)
        self.menuAnnotation.addAction(self.actionAnnotations)
        self.menuAnnotation.addAction(self.actionAnnotation_editor)
        self.menushow.addSeparator()
        self.menushow.addAction(self.actionPower_Spectrum)
        self.menushow.addAction(self.actionPhase)
        self.menuHelp.addAction(self.actionAbout_EEGLAB)
        self.menuHelp.addAction(self.actionVideos)
        self.menuHelp.addAction(self.actionTutor)
        self.menubar.addAction(self.menuFile.menuAction())
        self.menubar.addAction(self.menuAnnotation.menuAction())
        self.menubar.addAction(self.menushow.menuAction())
        self.menubar.addAction(self.menuSignals.menuAction())
        self.menubar.addAction(self.menuFilter.menuAction())
        self.menubar.addAction(self.menuTimesync.menuAction())
        self.menubar.addAction(self.menuHelp.menuAction())

        self.retranslateUi(EEGLAB)
        self.actionExit.triggered.connect(EEGLAB.close)
        QtCore.QMetaObject.connectSlotsByName(EEGLAB)
Exemplo n.º 4
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(906, 557)
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralWidget)
        self.horizontalLayout.setContentsMargins(5, 5, 5, 5)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame_6 = QtWidgets.QFrame(self.centralWidget)
        self.frame_6.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setContentsMargins(11, 5, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.spinDivCount = QtWidgets.QSpinBox(self.groupBox)
        self.spinDivCount.setMinimum(10)
        self.spinDivCount.setMaximum(500)
        self.spinDivCount.setProperty("value", 40)
        self.spinDivCount.setObjectName("spinDivCount")
        self.gridLayout.addWidget(self.spinDivCount, 0, 1, 1, 1)
        self.btnRefreshData = QtWidgets.QPushButton(self.groupBox)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/rotateleft.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnRefreshData.setIcon(icon)
        self.btnRefreshData.setObjectName("btnRefreshData")
        self.gridLayout.addWidget(self.btnRefreshData, 1, 0, 1, 2)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_3 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_2.setContentsMargins(11, 5, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.groupBox_3)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.comboCm1 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm1.setObjectName("comboCm1")
        self.verticalLayout_2.addWidget(self.comboCm1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.comboCm2 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm2.setObjectName("comboCm2")
        self.verticalLayout_2.addWidget(self.comboCm2)
        self.label_7 = QtWidgets.QLabel(self.groupBox_3)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_2.addWidget(self.label_7)
        self.comboCm3 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm3.setObjectName("comboCm3")
        self.verticalLayout_2.addWidget(self.comboCm3)
        self.label_8 = QtWidgets.QLabel(self.groupBox_3)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_2.addWidget(self.label_8)
        self.comboCm4 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm4.setObjectName("comboCm4")
        self.verticalLayout_2.addWidget(self.comboCm4)
        self.verticalLayout.addWidget(self.groupBox_3)
        self.groupBox_2 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_3.setContentsMargins(11, 5, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(10)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.chkBox3D_gridOn = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_gridOn.setChecked(True)
        self.chkBox3D_gridOn.setObjectName("chkBox3D_gridOn")
        self.gridLayout_3.addWidget(self.chkBox3D_gridOn, 1, 1, 1, 1)
        self.chkBox3D_invertZ = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_invertZ.setObjectName("chkBox3D_invertZ")
        self.gridLayout_3.addWidget(self.chkBox3D_invertZ, 1, 0, 1, 1)
        self.combo3D_type = QtWidgets.QComboBox(self.groupBox_2)
        self.combo3D_type.setObjectName("combo3D_type")
        self.combo3D_type.addItem("")
        self.combo3D_type.addItem("")
        self.combo3D_type.addItem("")
        self.gridLayout_3.addWidget(self.combo3D_type, 0, 1, 1, 1)
        self.chkBox3D_axisOn = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_axisOn.setChecked(True)
        self.chkBox3D_axisOn.setObjectName("chkBox3D_axisOn")
        self.gridLayout_3.addWidget(self.chkBox3D_axisOn, 2, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_3.addWidget(self.label_2, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_4 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_4.setObjectName("groupBox_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_3.setContentsMargins(11, 5, 11, 11)
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.combo2D_type = QtWidgets.QComboBox(self.groupBox_4)
        self.combo2D_type.setObjectName("combo2D_type")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.horizontalLayout_3.addWidget(self.combo2D_type)
        self.verticalLayout.addWidget(self.groupBox_4)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout.addWidget(self.frame_6)
        self.widgetPlot = QmyFigureCanvas(self.centralWidget)
        self.widgetPlot.setObjectName("widgetPlot")
        self.horizontalLayout.addWidget(self.widgetPlot)
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/exit_24.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon1)
        self.actQuit.setObjectName("actQuit")
        self.actTightLayout = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/39.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actTightLayout.setIcon(icon2)
        self.actTightLayout.setObjectName("actTightLayout")
        self.actSetCursor = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/range.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actSetCursor.setIcon(icon3)
        self.actSetCursor.setObjectName("actSetCursor")

        self.retranslateUi(MainWindow)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(906, 557)
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralWidget)
        self.horizontalLayout.setContentsMargins(5, 5, 5, 5)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame_6 = QtWidgets.QFrame(self.centralWidget)
        self.frame_6.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setContentsMargins(11, 5, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.spinDivCount = QtWidgets.QSpinBox(self.groupBox)
        self.spinDivCount.setMinimum(10)
        self.spinDivCount.setMaximum(500)
        self.spinDivCount.setProperty("value", 40)
        self.spinDivCount.setObjectName("spinDivCount")
        self.gridLayout.addWidget(self.spinDivCount, 0, 1, 1, 1)
        self.btnRefreshData = QtWidgets.QPushButton(self.groupBox)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/rotateleft.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnRefreshData.setIcon(icon)
        self.btnRefreshData.setObjectName("btnRefreshData")
        self.gridLayout.addWidget(self.btnRefreshData, 1, 0, 1, 2)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_3 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_2.setContentsMargins(11, 5, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.label_4 = QtWidgets.QLabel(self.groupBox_3)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_2.addWidget(self.label_4)
        self.comboCm1 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm1.setObjectName("comboCm1")
        self.verticalLayout_2.addWidget(self.comboCm1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_2.addWidget(self.label_6)
        self.comboCm2 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm2.setObjectName("comboCm2")
        self.verticalLayout_2.addWidget(self.comboCm2)
        self.label_7 = QtWidgets.QLabel(self.groupBox_3)
        self.label_7.setObjectName("label_7")
        self.verticalLayout_2.addWidget(self.label_7)
        self.comboCm3 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm3.setObjectName("comboCm3")
        self.verticalLayout_2.addWidget(self.comboCm3)
        self.label_8 = QtWidgets.QLabel(self.groupBox_3)
        self.label_8.setObjectName("label_8")
        self.verticalLayout_2.addWidget(self.label_8)
        self.comboCm4 = QtWidgets.QComboBox(self.groupBox_3)
        self.comboCm4.setObjectName("comboCm4")
        self.verticalLayout_2.addWidget(self.comboCm4)
        self.verticalLayout.addWidget(self.groupBox_3)
        self.groupBox_2 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout_3.setContentsMargins(11, 5, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(10)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.chkBox3D_gridOn = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_gridOn.setChecked(True)
        self.chkBox3D_gridOn.setObjectName("chkBox3D_gridOn")
        self.gridLayout_3.addWidget(self.chkBox3D_gridOn, 1, 1, 1, 1)
        self.chkBox3D_invertZ = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_invertZ.setObjectName("chkBox3D_invertZ")
        self.gridLayout_3.addWidget(self.chkBox3D_invertZ, 1, 0, 1, 1)
        self.combo3D_type = QtWidgets.QComboBox(self.groupBox_2)
        self.combo3D_type.setObjectName("combo3D_type")
        self.combo3D_type.addItem("")
        self.combo3D_type.addItem("")
        self.combo3D_type.addItem("")
        self.gridLayout_3.addWidget(self.combo3D_type, 0, 1, 1, 1)
        self.chkBox3D_axisOn = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox3D_axisOn.setChecked(True)
        self.chkBox3D_axisOn.setObjectName("chkBox3D_axisOn")
        self.gridLayout_3.addWidget(self.chkBox3D_axisOn, 2, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setAlignment(QtCore.Qt.AlignCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout_3.addWidget(self.label_2, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.groupBox_2)
        self.groupBox_4 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_4.setObjectName("groupBox_4")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_4)
        self.horizontalLayout_3.setContentsMargins(11, 5, 11, 11)
        self.horizontalLayout_3.setSpacing(6)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.groupBox_4)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.combo2D_type = QtWidgets.QComboBox(self.groupBox_4)
        self.combo2D_type.setObjectName("combo2D_type")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.combo2D_type.addItem("")
        self.horizontalLayout_3.addWidget(self.combo2D_type)
        self.verticalLayout.addWidget(self.groupBox_4)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem)
        self.horizontalLayout.addWidget(self.frame_6)
        self.widgetPlot = QmyFigureCanvas(self.centralWidget)
        self.widgetPlot.setObjectName("widgetPlot")
        self.horizontalLayout.addWidget(self.widgetPlot)
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/exit_24.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon1)
        self.actQuit.setObjectName("actQuit")
        self.actTightLayout = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/39.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actTightLayout.setIcon(icon2)
        self.actTightLayout.setObjectName("actTightLayout")
        self.actSetCursor = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/range.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actSetCursor.setIcon(icon3)
        self.actSetCursor.setObjectName("actSetCursor")

        self.retranslateUi(MainWindow)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "QChart绘图详细功能"))
        self.groupBox.setTitle(_translate("MainWindow", "数据"))
        self.label.setText(_translate("MainWindow", "划分格数"))
        self.btnRefreshData.setText(_translate("MainWindow", "重新生成数据"))
        self.groupBox_3.setTitle(_translate("MainWindow", "多组colormap"))
        self.label_4.setText(_translate("MainWindow", "Perceptually Uniform"))
        self.label_6.setText(_translate("MainWindow", "Sequential colormap"))
        self.label_7.setText(_translate("MainWindow", "Sequential(2) colormap"))
        self.label_8.setText(_translate("MainWindow", "Diverging colormap"))
        self.groupBox_2.setTitle(_translate("MainWindow", "3D 子图"))
        self.chkBox3D_gridOn.setText(_translate("MainWindow", "显示网格"))
        self.chkBox3D_invertZ.setText(_translate("MainWindow", "Z轴反向"))
        self.combo3D_type.setItemText(0, _translate("MainWindow", "surface"))
        self.combo3D_type.setItemText(1, _translate("MainWindow", "wireframe"))
        self.combo3D_type.setItemText(2, _translate("MainWindow", "scatter"))
        self.chkBox3D_axisOn.setText(_translate("MainWindow", "显示坐标轴"))
        self.label_2.setText(_translate("MainWindow", "3D绘图类型"))
        self.groupBox_4.setTitle(_translate("MainWindow", "2D 子图"))
        self.label_3.setText(_translate("MainWindow", "2D绘图类型"))
        self.combo2D_type.setItemText(0, _translate("MainWindow", "pcolormaeh"))
        self.combo2D_type.setItemText(1, _translate("MainWindow", "pcolor"))
        self.combo2D_type.setItemText(2, _translate("MainWindow", "imshow"))
        self.combo2D_type.setItemText(3, _translate("MainWindow", "contour"))
        self.combo2D_type.setItemText(4, _translate("MainWindow", "contourf"))
        self.actQuit.setText(_translate("MainWindow", "退出"))
        self.actQuit.setToolTip(_translate("MainWindow", "退出"))
        self.actTightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.actTightLayout.setToolTip(_translate("MainWindow", "重新紧凑布局"))
        self.actSetCursor.setText(_translate("MainWindow", "十字光标"))
        self.actSetCursor.setToolTip(_translate("MainWindow", "设置为十字光标"))
Exemplo n.º 6
0
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(939, 685)
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout_12.setContentsMargins(2, 2, 0, 0)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.tabWidget = QtWidgets.QTabWidget(Form)
        self.tabWidget.setEnabled(True)
        self.tabWidget.setStyleSheet(
            "QTabBar::tab {min-width:100px;color: grey;border: 1px solid;border-top-left-radius: 10px;border-top-right-radius: 10px;padding:5px;\n"
            "}    \n"
            "QTabBar::tab:!selected {margin-top: 1px;} \n"
            "QTabBar::tab:selected {color: black;};\n"
            "\n"
            "")
        self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setDocumentMode(False)
        self.tabWidget.setTabsClosable(False)
        self.tabWidget.setMovable(False)
        self.tabWidget.setTabBarAutoHide(False)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.label_2 = QtWidgets.QLabel(self.tab_5)
        self.label_2.setGeometry(QtCore.QRect(180, 290, 54, 12))
        self.label_2.setText("")
        self.label_2.setObjectName("label_2")
        self.label = QtWidgets.QLabel(self.tab_5)
        self.label.setGeometry(QtCore.QRect(280, 120, 54, 12))
        self.label.setText("")
        self.label.setObjectName("label")
        self.layoutWidget = QtWidgets.QWidget(self.tab_5)
        self.layoutWidget.setGeometry(QtCore.QRect(90, 240, 411, 151))
        self.layoutWidget.setObjectName("layoutWidget")
        self.gridLayout = QtWidgets.QGridLayout(self.layoutWidget)
        self.gridLayout.setContentsMargins(0, 0, 0, 0)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton_6 = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_6.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_6.setObjectName("pushButton_6")
        self.gridLayout.addWidget(self.pushButton_6, 0, 0, 1, 1)
        self.lineEdit_5 = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEdit_5.setStyleSheet(
            "QLineEdit {\n"
            "    border: 1px solid #A0A0A0; /* 边框宽度为1px,颜色为#A0A0A0 */\n"
            "    border-radius: 3px; /* 边框圆角 */\n"
            "    padding-left: 5px; /* 文本距离左边界有5px */\n"
            "    background-color: #F2F2F2; /* 背景颜色 */\n"
            "    color: #A0A0A0; /* 文本颜色 */\n"
            "    selection-background-color: #A0A0A0; /* 选中文本的背景颜色 */\n"
            "    selection-color: #F2F2F2; /* 选中文本的颜色 */\n"
            "    font-family: \"Microsoft YaHei\"; /* 文本字体族 */\n"
            "    font-size: 10pt; /* 文本字体大小 */\n"
            "}\n"
            "\n"
            "QLineEdit:hover { /* 鼠标悬浮在QLineEdit时的状态 */\n"
            "    border: 1px solid #298DFF;\n"
            "    border-radius: 3px;\n"
            "    background-color: #F2F2F2;\n"
            "    color: #298DFF;\n"
            "    selection-background-color: #298DFF;\n"
            "    selection-color: #F2F2F2;\n"
            "}")
        self.lineEdit_5.setObjectName("lineEdit_5")
        self.gridLayout.addWidget(self.lineEdit_5, 0, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 1, 0, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem1, 1, 1, 1, 1)
        self.pushButton_7 = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_7.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_7.setObjectName("pushButton_7")
        self.gridLayout.addWidget(self.pushButton_7, 2, 0, 1, 1)
        self.lineEdit_6 = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEdit_6.setStyleSheet(
            "QLineEdit {\n"
            "    border: 1px solid #A0A0A0; /* 边框宽度为1px,颜色为#A0A0A0 */\n"
            "    border-radius: 3px; /* 边框圆角 */\n"
            "    padding-left: 5px; /* 文本距离左边界有5px */\n"
            "    background-color: #F2F2F2; /* 背景颜色 */\n"
            "    color: #A0A0A0; /* 文本颜色 */\n"
            "    selection-background-color: #A0A0A0; /* 选中文本的背景颜色 */\n"
            "    selection-color: #F2F2F2; /* 选中文本的颜色 */\n"
            "    font-family: \"Microsoft YaHei\"; /* 文本字体族 */\n"
            "    font-size: 10pt; /* 文本字体大小 */\n"
            "}\n"
            "\n"
            "QLineEdit:hover { /* 鼠标悬浮在QLineEdit时的状态 */\n"
            "    border: 1px solid #298DFF;\n"
            "    border-radius: 3px;\n"
            "    background-color: #F2F2F2;\n"
            "    color: #298DFF;\n"
            "    selection-background-color: #298DFF;\n"
            "    selection-color: #F2F2F2;\n"
            "}")
        self.lineEdit_6.setObjectName("lineEdit_6")
        self.gridLayout.addWidget(self.lineEdit_6, 2, 1, 1, 1)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem2, 3, 0, 1, 1)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem3, 3, 1, 1, 1)
        self.pushButton_8 = QtWidgets.QPushButton(self.layoutWidget)
        self.pushButton_8.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_8.setObjectName("pushButton_8")
        self.gridLayout.addWidget(self.pushButton_8, 4, 0, 1, 1)
        self.lineEdit_7 = QtWidgets.QLineEdit(self.layoutWidget)
        self.lineEdit_7.setStyleSheet(
            "QLineEdit {\n"
            "    border: 1px solid #A0A0A0; /* 边框宽度为1px,颜色为#A0A0A0 */\n"
            "    border-radius: 3px; /* 边框圆角 */\n"
            "    padding-left: 5px; /* 文本距离左边界有5px */\n"
            "    background-color: #F2F2F2; /* 背景颜色 */\n"
            "    color: #A0A0A0; /* 文本颜色 */\n"
            "    selection-background-color: #A0A0A0; /* 选中文本的背景颜色 */\n"
            "    selection-color: #F2F2F2; /* 选中文本的颜色 */\n"
            "    font-family: \"Microsoft YaHei\"; /* 文本字体族 */\n"
            "    font-size: 10pt; /* 文本字体大小 */\n"
            "}\n"
            "\n"
            "QLineEdit:hover { /* 鼠标悬浮在QLineEdit时的状态 */\n"
            "    border: 1px solid #298DFF;\n"
            "    border-radius: 3px;\n"
            "    background-color: #F2F2F2;\n"
            "    color: #298DFF;\n"
            "    selection-background-color: #298DFF;\n"
            "    selection-color: #F2F2F2;\n"
            "}")
        self.lineEdit_7.setObjectName("lineEdit_7")
        self.gridLayout.addWidget(self.lineEdit_7, 4, 1, 1, 1)
        self.layoutWidget1 = QtWidgets.QWidget(self.tab_5)
        self.layoutWidget1.setGeometry(QtCore.QRect(90, 440, 411, 31))
        self.layoutWidget1.setObjectName("layoutWidget1")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.layoutWidget1)
        self.horizontalLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout.setObjectName("horizontalLayout")
        spacerItem4 = QtWidgets.QSpacerItem(308, 19,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem4)
        self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget1)
        self.pushButton_3.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.label_3 = QtWidgets.QLabel(self.tab_5)
        self.label_3.setGeometry(QtCore.QRect(610, 140, 291, 331))
        self.label_3.setStyleSheet("image: url(:/class/p1.jpg);")
        self.label_3.setText("")
        self.label_3.setObjectName("label_3")
        self.label_4 = QtWidgets.QLabel(self.tab_5)
        self.label_4.setGeometry(QtCore.QRect(90, 140, 431, 41))
        self.label_4.setObjectName("label_4")
        self.tabWidget.addTab(self.tab_5, "")
        self.tab = QtWidgets.QWidget()
        self.tab.setAutoFillBackground(False)
        self.tab.setObjectName("tab")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_5.setContentsMargins(1, 0, 0, 0)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setContentsMargins(1, 9, 0, 1)
        self.horizontalLayout_4.setSpacing(4)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout()
        self.verticalLayout_4.setSizeConstraint(
            QtWidgets.QLayout.SetDefaultConstraint)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        spacerItem5 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem5)
        spacerItem6 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout.addItem(spacerItem6)
        self.verticalLayout_3.addLayout(self.verticalLayout)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setContentsMargins(1, 12, 0, 0)
        self.horizontalLayout_2.setSpacing(2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.pushButton = QtWidgets.QPushButton(self.tab)
        self.pushButton.setEnabled(True)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(16)
        sizePolicy.setHeightForWidth(
            self.pushButton.sizePolicy().hasHeightForWidth())
        self.pushButton.setSizePolicy(sizePolicy)
        self.pushButton.setMaximumSize(QtCore.QSize(16777212, 16777215))
        self.pushButton.setBaseSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.pushButton.setFont(font)
        self.pushButton.setMouseTracking(False)
        self.pushButton.setTabletTracking(False)
        self.pushButton.setAcceptDrops(False)
        self.pushButton.setStyleSheet("QPushButton {\n"
                                      "border: 1px solid #333333;\n"
                                      "padding: 4px;\n"
                                      "min-width: 65px;\n"
                                      "min-height: 12px;\n"
                                      "}\n"
                                      "\n"
                                      "QPushButton:hover {\n"
                                      "background-color: #333333;\n"
                                      "border-color: #444444;\n"
                                      "}\n"
                                      "\n"
                                      "QPushButton:pressed {\n"
                                      "background-color: #111111;\n"
                                      "border-color: #333333;\n"
                                      "color: white;\n"
                                      "}\n"
                                      "\n"
                                      "QPushButton:disabled {\n"
                                      "color: #333333;\n"
                                      "}")
        self.pushButton.setAutoDefault(False)
        self.pushButton.setDefault(False)
        self.pushButton.setFlat(False)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout_2.addWidget(self.pushButton)
        spacerItem7 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem7)
        self.pushButton_4 = QtWidgets.QPushButton(self.tab)
        self.pushButton_4.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_4.setObjectName("pushButton_4")
        self.horizontalLayout_2.addWidget(self.pushButton_4)
        spacerItem8 = QtWidgets.QSpacerItem(40, 20,
                                            QtWidgets.QSizePolicy.Expanding,
                                            QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem8)
        self.pushButton_2 = QtWidgets.QPushButton(self.tab)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.pushButton_2.sizePolicy().hasHeightForWidth())
        self.pushButton_2.setSizePolicy(sizePolicy)
        self.pushButton_2.setStyleSheet("QPushButton {\n"
                                        "border: 1px solid #333333;\n"
                                        "padding: 4px;\n"
                                        "min-width: 65px;\n"
                                        "min-height: 12px;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:hover {\n"
                                        "background-color: #333333;\n"
                                        "border-color: #444444;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:pressed {\n"
                                        "background-color: #111111;\n"
                                        "border-color: #333333;\n"
                                        "color: white;\n"
                                        "}\n"
                                        "\n"
                                        "QPushButton:disabled {\n"
                                        "color: #333333;\n"
                                        "}")
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout_2.addWidget(self.pushButton_2)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.verticalLayout_4.addLayout(self.verticalLayout_3)
        spacerItem9 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem9)
        self.line_2 = QtWidgets.QFrame(self.tab)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.verticalLayout_4.addWidget(self.line_2)
        spacerItem10 = QtWidgets.QSpacerItem(20, 40,
                                             QtWidgets.QSizePolicy.Minimum,
                                             QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_4.addItem(spacerItem10)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setSpacing(0)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.lineEdit_2 = QtWidgets.QLineEdit(self.tab)
        self.lineEdit_2.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed,
                                           QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(
            self.lineEdit_2.sizePolicy().hasHeightForWidth())
        self.lineEdit_2.setSizePolicy(sizePolicy)
        font = QtGui.QFont()
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_2.setFont(font)
        self.lineEdit_2.setTabletTracking(False)
        self.lineEdit_2.setAutoFillBackground(False)
        self.lineEdit_2.setStyleSheet("")
        self.lineEdit_2.setInputMethodHints(QtCore.Qt.ImhNone)
        self.lineEdit_2.setDragEnabled(False)
        self.lineEdit_2.setReadOnly(False)
        self.lineEdit_2.setClearButtonEnabled(False)
        self.lineEdit_2.setObjectName("lineEdit_2")
        self.horizontalLayout_3.addWidget(self.lineEdit_2)
        spacerItem11 = QtWidgets.QSpacerItem(40, 20,
                                             QtWidgets.QSizePolicy.Expanding,
                                             QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem11)
        self.horizontalLayout_3.setStretch(0, 1)
        self.horizontalLayout_3.setStretch(1, 2)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.textBrowser = QtWidgets.QTextBrowser(self.tab)
        self.textBrowser.setObjectName("textBrowser")
        self.verticalLayout_2.addWidget(self.textBrowser)
        self.verticalLayout_4.addLayout(self.verticalLayout_2)
        self.verticalLayout_4.setStretch(0, 3)
        self.verticalLayout_4.setStretch(3, 1)
        self.verticalLayout_4.setStretch(4, 10)
        self.horizontalLayout_4.addLayout(self.verticalLayout_4)
        self.line = QtWidgets.QFrame(self.tab)
        self.line.setFrameShape(QtWidgets.QFrame.VLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.horizontalLayout_4.addWidget(self.line)
        self.tabWidget_2 = QtWidgets.QTabWidget(self.tab)
        self.tabWidget_2.setObjectName("tabWidget_2")
        self.tab_3 = QmyFigureCanvas()
        self.tab_3.setObjectName("tab_3")
        self.tabWidget_2.addTab(self.tab_3, "")
        self.tab_4 = QmyFigureCanvas()
        self.tab_4.setObjectName("tab_4")
        self.tabWidget_2.addTab(self.tab_4, "")
        self.tab_6 = QmyFigureCanvas()
        self.tab_6.setObjectName("tab_6")
        self.tabWidget_2.addTab(self.tab_6, "")
        self.horizontalLayout_4.addWidget(self.tabWidget_2)
        self.horizontalLayout_4.setStretch(0, 3)
        self.horizontalLayout_4.setStretch(2, 8)
        self.verticalLayout_5.addLayout(self.horizontalLayout_4)
        self.tabWidget.addTab(self.tab, "")
        self.verticalLayout_12.addWidget(self.tabWidget)

        self.retranslateUi(Form)
        self.tabWidget.setCurrentIndex(0)
        self.tabWidget_2.setCurrentIndex(0)
        QtCore.QMetaObject.connectSlotsByName(Form)
Exemplo n.º 7
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(566, 353)
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)
        self.tabWidget.setGeometry(QtCore.QRect(13, 13, 526, 316))
        self.tabWidget.setDocumentMode(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_11.setSpacing(6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.frame_2 = QtWidgets.QFrame(self.tab)
        self.frame_2.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame = QtWidgets.QFrame(self.frame_2)
        self.frame.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gBoxHist_toolbar = QtWidgets.QGroupBox(self.frame)
        self.gBoxHist_toolbar.setCheckable(True)
        self.gBoxHist_toolbar.setObjectName("gBoxHist_toolbar")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.gBoxHist_toolbar)
        self.verticalLayout.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.chkBoxHist_ShowHint = QtWidgets.QCheckBox(self.gBoxHist_toolbar)
        self.chkBoxHist_ShowHint.setChecked(True)
        self.chkBoxHist_ShowHint.setObjectName("chkBoxHist_ShowHint")
        self.verticalLayout.addWidget(self.chkBoxHist_ShowHint)
        self.verticalLayout_2.addWidget(self.gBoxHist_toolbar)
        self.groupBox_2 = QtWidgets.QGroupBox(self.frame)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setVerticalSpacing(10)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.btnHist_tightLayout = QtWidgets.QPushButton(self.groupBox_2)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/39.ico"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnHist_tightLayout.setIcon(icon)
        self.btnHist_tightLayout.setObjectName("btnHist_tightLayout")
        self.gridLayout.addWidget(self.btnHist_tightLayout, 3, 1, 1, 1)
        self.spinHist_binsCount = QtWidgets.QSpinBox(self.groupBox_2)
        self.spinHist_binsCount.setMinimum(10)
        self.spinHist_binsCount.setMaximum(5000)
        self.spinHist_binsCount.setProperty("value", 40)
        self.spinHist_binsCount.setObjectName("spinHist_binsCount")
        self.gridLayout.addWidget(self.spinHist_binsCount, 1, 1, 1, 1)
        self.spinHist_PointCount = QtWidgets.QSpinBox(self.groupBox_2)
        self.spinHist_PointCount.setMinimum(10)
        self.spinHist_PointCount.setMaximum(900000)
        self.spinHist_PointCount.setProperty("value", 2000)
        self.spinHist_PointCount.setObjectName("spinHist_PointCount")
        self.gridLayout.addWidget(self.spinHist_PointCount, 0, 1, 1, 1)
        self.btnHist_redraw = QtWidgets.QPushButton(self.groupBox_2)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/828.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnHist_redraw.setIcon(icon1)
        self.btnHist_redraw.setObjectName("btnHist_redraw")
        self.gridLayout.addWidget(self.btnHist_redraw, 3, 0, 1, 1)
        self.chkBoxHist_Legend = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBoxHist_Legend.setChecked(True)
        self.chkBoxHist_Legend.setObjectName("chkBoxHist_Legend")
        self.gridLayout.addWidget(self.chkBoxHist_Legend, 4, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout.addWidget(self.frame)
        self.widgetHist = QmyFigureCanvas(self.frame_2)
        self.widgetHist.setObjectName("widgetHist")
        self.horizontalLayout.addWidget(self.widgetHist)
        self.verticalLayout_11.addWidget(self.frame_2)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_3 = QtWidgets.QFrame(self.tab_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_2.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_10 = QtWidgets.QFrame(self.frame_3)
        self.frame_10.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_10.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_10.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_10.setObjectName("frame_10")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.frame_10)
        self.verticalLayout_14.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_14.setSpacing(6)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.groupBox_6 = QtWidgets.QGroupBox(self.frame_10)
        self.groupBox_6.setObjectName("groupBox_6")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.groupBox_6)
        self.verticalLayout_13.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_13.setSpacing(12)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.radioFill_Both = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Both.setChecked(True)
        self.radioFill_Both.setObjectName("radioFill_Both")
        self.verticalLayout_13.addWidget(self.radioFill_Both)
        self.radioFill_Up = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Up.setObjectName("radioFill_Up")
        self.verticalLayout_13.addWidget(self.radioFill_Up)
        self.radioFill_Down = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Down.setObjectName("radioFill_Down")
        self.verticalLayout_13.addWidget(self.radioFill_Down)
        self.btnFill_tightLayout = QtWidgets.QPushButton(self.groupBox_6)
        self.btnFill_tightLayout.setIcon(icon)
        self.btnFill_tightLayout.setObjectName("btnFill_tightLayout")
        self.verticalLayout_13.addWidget(self.btnFill_tightLayout)
        self.chkBoxFill_gridLine = QtWidgets.QCheckBox(self.groupBox_6)
        self.chkBoxFill_gridLine.setObjectName("chkBoxFill_gridLine")
        self.verticalLayout_13.addWidget(self.chkBoxFill_gridLine)
        self.verticalLayout_14.addWidget(self.groupBox_6)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_14.addItem(spacerItem1)
        self.horizontalLayout_2.addWidget(self.frame_10)
        self.widgetFill = QmyFigureCanvas(self.frame_3)
        self.widgetFill.setObjectName("widgetFill")
        self.horizontalLayout_2.addWidget(self.widgetFill)
        self.verticalLayout_3.addWidget(self.frame_3)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(6)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.frame_4 = QtWidgets.QFrame(self.tab_3)
        self.frame_4.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_4)
        self.horizontalLayout_7.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_7.setSpacing(6)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.frame_7 = QtWidgets.QFrame(self.frame_4)
        self.frame_7.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_7.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_7)
        self.verticalLayout_5.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox_4 = QtWidgets.QGroupBox(self.frame_7)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(12)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.btnPie_tightLayout = QtWidgets.QPushButton(self.groupBox_4)
        self.btnPie_tightLayout.setIcon(icon)
        self.btnPie_tightLayout.setObjectName("btnPie_tightLayout")
        self.gridLayout_3.addWidget(self.btnPie_tightLayout, 4, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1)
        self.chkBoxPie_Legend = QtWidgets.QCheckBox(self.groupBox_4)
        self.chkBoxPie_Legend.setChecked(True)
        self.chkBoxPie_Legend.setObjectName("chkBoxPie_Legend")
        self.gridLayout_3.addWidget(self.chkBoxPie_Legend, 2, 1, 1, 1)
        self.btnPie_redraw = QtWidgets.QPushButton(self.groupBox_4)
        self.btnPie_redraw.setIcon(icon1)
        self.btnPie_redraw.setObjectName("btnPie_redraw")
        self.gridLayout_3.addWidget(self.btnPie_redraw, 4, 0, 1, 1)
        self.spinPie_HoleSize = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinPie_HoleSize.setMaximum(0.9)
        self.spinPie_HoleSize.setSingleStep(0.1)
        self.spinPie_HoleSize.setProperty("value", 0.1)
        self.spinPie_HoleSize.setObjectName("spinPie_HoleSize")
        self.gridLayout_3.addWidget(self.spinPie_HoleSize, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_4)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 1, 0, 1, 1)
        self.comboPie_explode = QtWidgets.QComboBox(self.groupBox_4)
        self.comboPie_explode.setObjectName("comboPie_explode")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.gridLayout_3.addWidget(self.comboPie_explode, 1, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem2)
        self.horizontalLayout_7.addWidget(self.frame_7)
        self.widgetPie = QmyFigureCanvas(self.frame_4)
        self.widgetPie.setObjectName("widgetPie")
        self.horizontalLayout_7.addWidget(self.widgetPie)
        self.verticalLayout_8.addWidget(self.frame_4)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setSpacing(6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.frame_5 = QtWidgets.QFrame(self.tab_4)
        self.frame_5.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_5.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_5.setSpacing(6)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.frame_6 = QtWidgets.QFrame(self.frame_5)
        self.frame_6.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout_6.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.groupBox_3 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_4.setSpacing(10)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSpacing(6)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_4.addWidget(self.label_3)
        self.spinStem_PointCount = QtWidgets.QSpinBox(self.groupBox_3)
        self.spinStem_PointCount.setMinimum(1)
        self.spinStem_PointCount.setMaximum(900000)
        self.spinStem_PointCount.setProperty("value", 20)
        self.spinStem_PointCount.setObjectName("spinStem_PointCount")
        self.horizontalLayout_4.addWidget(self.spinStem_PointCount)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.chkBoxStem_Analog = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Analog.setChecked(True)
        self.chkBoxStem_Analog.setObjectName("chkBoxStem_Analog")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Analog)
        self.chkBoxStem_Holder = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Holder.setChecked(True)
        self.chkBoxStem_Holder.setObjectName("chkBoxStem_Holder")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Holder)
        self.chkBoxStem_Legend = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Legend.setChecked(True)
        self.chkBoxStem_Legend.setObjectName("chkBoxStem_Legend")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Legend)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.btnStem_redraw = QtWidgets.QPushButton(self.groupBox_3)
        self.btnStem_redraw.setIcon(icon1)
        self.btnStem_redraw.setObjectName("btnStem_redraw")
        self.horizontalLayout_6.addWidget(self.btnStem_redraw)
        self.btnStem_tightLayout = QtWidgets.QPushButton(self.groupBox_3)
        self.btnStem_tightLayout.setIcon(icon)
        self.btnStem_tightLayout.setObjectName("btnStem_tightLayout")
        self.horizontalLayout_6.addWidget(self.btnStem_tightLayout)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.verticalLayout_6.addWidget(self.groupBox_3)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem3)
        self.horizontalLayout_5.addWidget(self.frame_6)
        self.widgetStem = QmyFigureCanvas(self.frame_5)
        self.widgetStem.setObjectName("widgetStem")
        self.horizontalLayout_5.addWidget(self.widgetStem)
        self.verticalLayout_7.addWidget(self.frame_5)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_12.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_12.setSpacing(6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.frame_8 = QtWidgets.QFrame(self.tab_5)
        self.frame_8.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.frame_8)
        self.horizontalLayout_8.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_8.setSpacing(6)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.frame_9 = QtWidgets.QFrame(self.frame_8)
        self.frame_9.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame_9.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_9.setObjectName("frame_9")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.frame_9)
        self.verticalLayout_10.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_10.setSpacing(6)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.groupBox_5 = QtWidgets.QGroupBox(self.frame_9)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_9.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_9.setSpacing(10)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setHorizontalSpacing(6)
        self.gridLayout_4.setVerticalSpacing(10)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.chkBoxPolar_direction = QtWidgets.QCheckBox(self.groupBox_5)
        self.chkBoxPolar_direction.setChecked(True)
        self.chkBoxPolar_direction.setObjectName("chkBoxPolar_direction")
        self.gridLayout_4.addWidget(self.chkBoxPolar_direction, 0, 0, 1, 1)
        self.chkBoxPolar_gridOn = QtWidgets.QCheckBox(self.groupBox_5)
        self.chkBoxPolar_gridOn.setChecked(True)
        self.chkBoxPolar_gridOn.setObjectName("chkBoxPolar_gridOn")
        self.gridLayout_4.addWidget(self.chkBoxPolar_gridOn, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_5)
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1)
        self.spinPolar_offset = QtWidgets.QSpinBox(self.groupBox_5)
        self.spinPolar_offset.setMinimum(-180)
        self.spinPolar_offset.setMaximum(180)
        self.spinPolar_offset.setSingleStep(10)
        self.spinPolar_offset.setProperty("value", 0)
        self.spinPolar_offset.setObjectName("spinPolar_offset")
        self.gridLayout_4.addWidget(self.spinPolar_offset, 1, 1, 1, 1)
        self.btnPolar_tightLayout = QtWidgets.QPushButton(self.groupBox_5)
        self.btnPolar_tightLayout.setIcon(icon)
        self.btnPolar_tightLayout.setObjectName("btnPolar_tightLayout")
        self.gridLayout_4.addWidget(self.btnPolar_tightLayout, 2, 1, 1, 1)
        self.btnPolar_redraw = QtWidgets.QPushButton(self.groupBox_5)
        self.btnPolar_redraw.setIcon(icon1)
        self.btnPolar_redraw.setObjectName("btnPolar_redraw")
        self.gridLayout_4.addWidget(self.btnPolar_redraw, 2, 0, 1, 1)
        self.verticalLayout_9.addLayout(self.gridLayout_4)
        self.line = QtWidgets.QFrame(self.groupBox_5)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_9.addWidget(self.line)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setHorizontalSpacing(6)
        self.gridLayout_2.setVerticalSpacing(10)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_7 = QtWidgets.QLabel(self.groupBox_5)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
        self.spinPolar_rotation = QtWidgets.QSpinBox(self.groupBox_5)
        self.spinPolar_rotation.setMinimum(-180)
        self.spinPolar_rotation.setMaximum(180)
        self.spinPolar_rotation.setProperty("value", 90)
        self.spinPolar_rotation.setObjectName("spinPolar_rotation")
        self.gridLayout_2.addWidget(self.spinPolar_rotation, 0, 1, 1, 1)
        self.btnPolar_rotate = QtWidgets.QPushButton(self.groupBox_5)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/exec.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnPolar_rotate.setIcon(icon2)
        self.btnPolar_rotate.setObjectName("btnPolar_rotate")
        self.gridLayout_2.addWidget(self.btnPolar_rotate, 1, 1, 1, 1)
        self.verticalLayout_9.addLayout(self.gridLayout_2)
        self.verticalLayout_10.addWidget(self.groupBox_5)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_10.addItem(spacerItem4)
        self.horizontalLayout_8.addWidget(self.frame_9)
        self.widgetPolar = QmyFigureCanvas(self.frame_8)
        self.widgetPolar.setObjectName("widgetPolar")
        self.horizontalLayout_8.addWidget(self.widgetPolar)
        self.verticalLayout_12.addWidget(self.frame_8)
        self.tabWidget.addTab(self.tab_5, "")
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/exit_24.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon3)
        self.actQuit.setObjectName("actQuit")
        self.actTightLayout = QtWidgets.QAction(MainWindow)
        self.actTightLayout.setIcon(icon)
        self.actTightLayout.setObjectName("actTightLayout")
        self.actScatterAgain = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/017.GIF"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actScatterAgain.setIcon(icon4)
        self.actScatterAgain.setObjectName("actScatterAgain")
        self.actSetCursor = QtWidgets.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/images/range.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actSetCursor.setIcon(icon5)
        self.actSetCursor.setObjectName("actSetCursor")

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Exemplo n.º 8
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(566, 353)
        font = QtGui.QFont()
        font.setFamily("宋体")
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.tabWidget = QtWidgets.QTabWidget(self.centralWidget)
        self.tabWidget.setGeometry(QtCore.QRect(13, 13, 526, 316))
        self.tabWidget.setDocumentMode(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_11.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_11.setSpacing(6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.frame_2 = QtWidgets.QFrame(self.tab)
        self.frame_2.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.frame = QtWidgets.QFrame(self.frame_2)
        self.frame.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout_2.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.gBoxHist_toolbar = QtWidgets.QGroupBox(self.frame)
        self.gBoxHist_toolbar.setCheckable(True)
        self.gBoxHist_toolbar.setObjectName("gBoxHist_toolbar")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.gBoxHist_toolbar)
        self.verticalLayout.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.chkBoxHist_ShowHint = QtWidgets.QCheckBox(self.gBoxHist_toolbar)
        self.chkBoxHist_ShowHint.setChecked(True)
        self.chkBoxHist_ShowHint.setObjectName("chkBoxHist_ShowHint")
        self.verticalLayout.addWidget(self.chkBoxHist_ShowHint)
        self.verticalLayout_2.addWidget(self.gBoxHist_toolbar)
        self.groupBox_2 = QtWidgets.QGroupBox(self.frame)
        self.groupBox_2.setObjectName("groupBox_2")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setVerticalSpacing(10)
        self.gridLayout.setObjectName("gridLayout")
        self.label = QtWidgets.QLabel(self.groupBox_2)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(self.groupBox_2)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.btnHist_tightLayout = QtWidgets.QPushButton(self.groupBox_2)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/39.ico"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnHist_tightLayout.setIcon(icon)
        self.btnHist_tightLayout.setObjectName("btnHist_tightLayout")
        self.gridLayout.addWidget(self.btnHist_tightLayout, 3, 1, 1, 1)
        self.spinHist_binsCount = QtWidgets.QSpinBox(self.groupBox_2)
        self.spinHist_binsCount.setMinimum(10)
        self.spinHist_binsCount.setMaximum(5000)
        self.spinHist_binsCount.setProperty("value", 40)
        self.spinHist_binsCount.setObjectName("spinHist_binsCount")
        self.gridLayout.addWidget(self.spinHist_binsCount, 1, 1, 1, 1)
        self.spinHist_PointCount = QtWidgets.QSpinBox(self.groupBox_2)
        self.spinHist_PointCount.setMinimum(10)
        self.spinHist_PointCount.setMaximum(900000)
        self.spinHist_PointCount.setProperty("value", 2000)
        self.spinHist_PointCount.setObjectName("spinHist_PointCount")
        self.gridLayout.addWidget(self.spinHist_PointCount, 0, 1, 1, 1)
        self.btnHist_redraw = QtWidgets.QPushButton(self.groupBox_2)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/828.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnHist_redraw.setIcon(icon1)
        self.btnHist_redraw.setObjectName("btnHist_redraw")
        self.gridLayout.addWidget(self.btnHist_redraw, 3, 0, 1, 1)
        self.chkBoxHist_Legend = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBoxHist_Legend.setChecked(True)
        self.chkBoxHist_Legend.setObjectName("chkBoxHist_Legend")
        self.gridLayout.addWidget(self.chkBoxHist_Legend, 4, 0, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_2)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.horizontalLayout.addWidget(self.frame)
        self.widgetHist = QmyFigureCanvas(self.frame_2)
        self.widgetHist.setObjectName("widgetHist")
        self.horizontalLayout.addWidget(self.widgetHist)
        self.verticalLayout_11.addWidget(self.frame_2)
        self.tabWidget.addTab(self.tab, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame_3 = QtWidgets.QFrame(self.tab_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_2.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_10 = QtWidgets.QFrame(self.frame_3)
        self.frame_10.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_10.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_10.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_10.setObjectName("frame_10")
        self.verticalLayout_14 = QtWidgets.QVBoxLayout(self.frame_10)
        self.verticalLayout_14.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_14.setSpacing(6)
        self.verticalLayout_14.setObjectName("verticalLayout_14")
        self.groupBox_6 = QtWidgets.QGroupBox(self.frame_10)
        self.groupBox_6.setObjectName("groupBox_6")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.groupBox_6)
        self.verticalLayout_13.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_13.setSpacing(12)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.radioFill_Both = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Both.setChecked(True)
        self.radioFill_Both.setObjectName("radioFill_Both")
        self.verticalLayout_13.addWidget(self.radioFill_Both)
        self.radioFill_Up = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Up.setObjectName("radioFill_Up")
        self.verticalLayout_13.addWidget(self.radioFill_Up)
        self.radioFill_Down = QtWidgets.QRadioButton(self.groupBox_6)
        self.radioFill_Down.setObjectName("radioFill_Down")
        self.verticalLayout_13.addWidget(self.radioFill_Down)
        self.btnFill_tightLayout = QtWidgets.QPushButton(self.groupBox_6)
        self.btnFill_tightLayout.setIcon(icon)
        self.btnFill_tightLayout.setObjectName("btnFill_tightLayout")
        self.verticalLayout_13.addWidget(self.btnFill_tightLayout)
        self.chkBoxFill_gridLine = QtWidgets.QCheckBox(self.groupBox_6)
        self.chkBoxFill_gridLine.setObjectName("chkBoxFill_gridLine")
        self.verticalLayout_13.addWidget(self.chkBoxFill_gridLine)
        self.verticalLayout_14.addWidget(self.groupBox_6)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_14.addItem(spacerItem1)
        self.horizontalLayout_2.addWidget(self.frame_10)
        self.widgetFill = QmyFigureCanvas(self.frame_3)
        self.widgetFill.setObjectName("widgetFill")
        self.horizontalLayout_2.addWidget(self.widgetFill)
        self.verticalLayout_3.addWidget(self.frame_3)
        self.tabWidget.addTab(self.tab_2, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(6)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.frame_4 = QtWidgets.QFrame(self.tab_3)
        self.frame_4.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_4)
        self.horizontalLayout_7.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_7.setSpacing(6)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.frame_7 = QtWidgets.QFrame(self.frame_4)
        self.frame_7.setMaximumSize(QtCore.QSize(220, 16777215))
        self.frame_7.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_7.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_7.setObjectName("frame_7")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frame_7)
        self.verticalLayout_5.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox_4 = QtWidgets.QGroupBox(self.frame_7)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(12)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.btnPie_tightLayout = QtWidgets.QPushButton(self.groupBox_4)
        self.btnPie_tightLayout.setIcon(icon)
        self.btnPie_tightLayout.setObjectName("btnPie_tightLayout")
        self.gridLayout_3.addWidget(self.btnPie_tightLayout, 4, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setObjectName("label_4")
        self.gridLayout_3.addWidget(self.label_4, 0, 0, 1, 1)
        self.chkBoxPie_Legend = QtWidgets.QCheckBox(self.groupBox_4)
        self.chkBoxPie_Legend.setChecked(True)
        self.chkBoxPie_Legend.setObjectName("chkBoxPie_Legend")
        self.gridLayout_3.addWidget(self.chkBoxPie_Legend, 2, 1, 1, 1)
        self.btnPie_redraw = QtWidgets.QPushButton(self.groupBox_4)
        self.btnPie_redraw.setIcon(icon1)
        self.btnPie_redraw.setObjectName("btnPie_redraw")
        self.gridLayout_3.addWidget(self.btnPie_redraw, 4, 0, 1, 1)
        self.spinPie_HoleSize = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinPie_HoleSize.setMaximum(0.9)
        self.spinPie_HoleSize.setSingleStep(0.1)
        self.spinPie_HoleSize.setProperty("value", 0.1)
        self.spinPie_HoleSize.setObjectName("spinPie_HoleSize")
        self.gridLayout_3.addWidget(self.spinPie_HoleSize, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(self.groupBox_4)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 1, 0, 1, 1)
        self.comboPie_explode = QtWidgets.QComboBox(self.groupBox_4)
        self.comboPie_explode.setObjectName("comboPie_explode")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.comboPie_explode.addItem("")
        self.gridLayout_3.addWidget(self.comboPie_explode, 1, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem2)
        self.horizontalLayout_7.addWidget(self.frame_7)
        self.widgetPie = QmyFigureCanvas(self.frame_4)
        self.widgetPie.setObjectName("widgetPie")
        self.horizontalLayout_7.addWidget(self.widgetPie)
        self.verticalLayout_8.addWidget(self.frame_4)
        self.tabWidget.addTab(self.tab_3, "")
        self.tab_4 = QtWidgets.QWidget()
        self.tab_4.setObjectName("tab_4")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.tab_4)
        self.verticalLayout_7.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_7.setSpacing(6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.frame_5 = QtWidgets.QFrame(self.tab_4)
        self.frame_5.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_5.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_5.setSpacing(6)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.frame_6 = QtWidgets.QFrame(self.frame_5)
        self.frame_6.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.frame_6)
        self.verticalLayout_6.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.groupBox_3 = QtWidgets.QGroupBox(self.frame_6)
        self.groupBox_3.setObjectName("groupBox_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_3)
        self.verticalLayout_4.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_4.setSpacing(10)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setSpacing(6)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_4.addWidget(self.label_3)
        self.spinStem_PointCount = QtWidgets.QSpinBox(self.groupBox_3)
        self.spinStem_PointCount.setMinimum(1)
        self.spinStem_PointCount.setMaximum(900000)
        self.spinStem_PointCount.setProperty("value", 20)
        self.spinStem_PointCount.setObjectName("spinStem_PointCount")
        self.horizontalLayout_4.addWidget(self.spinStem_PointCount)
        self.verticalLayout_4.addLayout(self.horizontalLayout_4)
        self.chkBoxStem_Analog = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Analog.setChecked(True)
        self.chkBoxStem_Analog.setObjectName("chkBoxStem_Analog")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Analog)
        self.chkBoxStem_Holder = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Holder.setChecked(True)
        self.chkBoxStem_Holder.setObjectName("chkBoxStem_Holder")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Holder)
        self.chkBoxStem_Legend = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxStem_Legend.setChecked(True)
        self.chkBoxStem_Legend.setObjectName("chkBoxStem_Legend")
        self.verticalLayout_4.addWidget(self.chkBoxStem_Legend)
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_6.setSpacing(6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.btnStem_redraw = QtWidgets.QPushButton(self.groupBox_3)
        self.btnStem_redraw.setIcon(icon1)
        self.btnStem_redraw.setObjectName("btnStem_redraw")
        self.horizontalLayout_6.addWidget(self.btnStem_redraw)
        self.btnStem_tightLayout = QtWidgets.QPushButton(self.groupBox_3)
        self.btnStem_tightLayout.setIcon(icon)
        self.btnStem_tightLayout.setObjectName("btnStem_tightLayout")
        self.horizontalLayout_6.addWidget(self.btnStem_tightLayout)
        self.verticalLayout_4.addLayout(self.horizontalLayout_6)
        self.verticalLayout_6.addWidget(self.groupBox_3)
        spacerItem3 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_6.addItem(spacerItem3)
        self.horizontalLayout_5.addWidget(self.frame_6)
        self.widgetStem = QmyFigureCanvas(self.frame_5)
        self.widgetStem.setObjectName("widgetStem")
        self.horizontalLayout_5.addWidget(self.widgetStem)
        self.verticalLayout_7.addWidget(self.frame_5)
        self.tabWidget.addTab(self.tab_4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_12.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_12.setSpacing(6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.frame_8 = QtWidgets.QFrame(self.tab_5)
        self.frame_8.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_8.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_8.setObjectName("frame_8")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout(self.frame_8)
        self.horizontalLayout_8.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_8.setSpacing(6)
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.frame_9 = QtWidgets.QFrame(self.frame_8)
        self.frame_9.setMaximumSize(QtCore.QSize(230, 16777215))
        self.frame_9.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_9.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_9.setObjectName("frame_9")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.frame_9)
        self.verticalLayout_10.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_10.setSpacing(6)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.groupBox_5 = QtWidgets.QGroupBox(self.frame_9)
        self.groupBox_5.setObjectName("groupBox_5")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.groupBox_5)
        self.verticalLayout_9.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_9.setSpacing(10)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setHorizontalSpacing(6)
        self.gridLayout_4.setVerticalSpacing(10)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.chkBoxPolar_direction = QtWidgets.QCheckBox(self.groupBox_5)
        self.chkBoxPolar_direction.setChecked(True)
        self.chkBoxPolar_direction.setObjectName("chkBoxPolar_direction")
        self.gridLayout_4.addWidget(self.chkBoxPolar_direction, 0, 0, 1, 1)
        self.chkBoxPolar_gridOn = QtWidgets.QCheckBox(self.groupBox_5)
        self.chkBoxPolar_gridOn.setChecked(True)
        self.chkBoxPolar_gridOn.setObjectName("chkBoxPolar_gridOn")
        self.gridLayout_4.addWidget(self.chkBoxPolar_gridOn, 0, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_5)
        self.label_6.setObjectName("label_6")
        self.gridLayout_4.addWidget(self.label_6, 1, 0, 1, 1)
        self.spinPolar_offset = QtWidgets.QSpinBox(self.groupBox_5)
        self.spinPolar_offset.setMinimum(-180)
        self.spinPolar_offset.setMaximum(180)
        self.spinPolar_offset.setSingleStep(10)
        self.spinPolar_offset.setProperty("value", 0)
        self.spinPolar_offset.setObjectName("spinPolar_offset")
        self.gridLayout_4.addWidget(self.spinPolar_offset, 1, 1, 1, 1)
        self.btnPolar_tightLayout = QtWidgets.QPushButton(self.groupBox_5)
        self.btnPolar_tightLayout.setIcon(icon)
        self.btnPolar_tightLayout.setObjectName("btnPolar_tightLayout")
        self.gridLayout_4.addWidget(self.btnPolar_tightLayout, 2, 1, 1, 1)
        self.btnPolar_redraw = QtWidgets.QPushButton(self.groupBox_5)
        self.btnPolar_redraw.setIcon(icon1)
        self.btnPolar_redraw.setObjectName("btnPolar_redraw")
        self.gridLayout_4.addWidget(self.btnPolar_redraw, 2, 0, 1, 1)
        self.verticalLayout_9.addLayout(self.gridLayout_4)
        self.line = QtWidgets.QFrame(self.groupBox_5)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout_9.addWidget(self.line)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setHorizontalSpacing(6)
        self.gridLayout_2.setVerticalSpacing(10)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_7 = QtWidgets.QLabel(self.groupBox_5)
        self.label_7.setObjectName("label_7")
        self.gridLayout_2.addWidget(self.label_7, 0, 0, 1, 1)
        self.spinPolar_rotation = QtWidgets.QSpinBox(self.groupBox_5)
        self.spinPolar_rotation.setMinimum(-180)
        self.spinPolar_rotation.setMaximum(180)
        self.spinPolar_rotation.setProperty("value", 90)
        self.spinPolar_rotation.setObjectName("spinPolar_rotation")
        self.gridLayout_2.addWidget(self.spinPolar_rotation, 0, 1, 1, 1)
        self.btnPolar_rotate = QtWidgets.QPushButton(self.groupBox_5)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/exec.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.btnPolar_rotate.setIcon(icon2)
        self.btnPolar_rotate.setObjectName("btnPolar_rotate")
        self.gridLayout_2.addWidget(self.btnPolar_rotate, 1, 1, 1, 1)
        self.verticalLayout_9.addLayout(self.gridLayout_2)
        self.verticalLayout_10.addWidget(self.groupBox_5)
        spacerItem4 = QtWidgets.QSpacerItem(20, 40,
                                            QtWidgets.QSizePolicy.Minimum,
                                            QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_10.addItem(spacerItem4)
        self.horizontalLayout_8.addWidget(self.frame_9)
        self.widgetPolar = QmyFigureCanvas(self.frame_8)
        self.widgetPolar.setObjectName("widgetPolar")
        self.horizontalLayout_8.addWidget(self.widgetPolar)
        self.verticalLayout_12.addWidget(self.frame_8)
        self.tabWidget.addTab(self.tab_5, "")
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/exit_24.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon3)
        self.actQuit.setObjectName("actQuit")
        self.actTightLayout = QtWidgets.QAction(MainWindow)
        self.actTightLayout.setIcon(icon)
        self.actTightLayout.setObjectName("actTightLayout")
        self.actScatterAgain = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/017.GIF"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actScatterAgain.setIcon(icon4)
        self.actScatterAgain.setObjectName("actScatterAgain")
        self.actSetCursor = QtWidgets.QAction(MainWindow)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/images/range.ico"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actSetCursor.setIcon(icon5)
        self.actSetCursor.setObjectName("actSetCursor")

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "QChart绘图详细功能"))
        self.gBoxHist_toolbar.setTitle(_translate("MainWindow", "导航工具栏"))
        self.chkBoxHist_ShowHint.setText(_translate("MainWindow", "显示坐标提示"))
        self.groupBox_2.setTitle(_translate("MainWindow", "图表操作"))
        self.label.setText(_translate("MainWindow", "数据点个数"))
        self.label_2.setText(_translate("MainWindow", "统计分段数"))
        self.btnHist_tightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.btnHist_redraw.setText(_translate("MainWindow", "重画图表"))
        self.chkBoxHist_Legend.setText(_translate("MainWindow", "显示图例"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab),
                                  _translate("MainWindow", "直方图"))
        self.groupBox_6.setTitle(_translate("MainWindow", "图表操作"))
        self.radioFill_Both.setText(_translate("MainWindow", "曲线与0之间填充"))
        self.radioFill_Up.setText(_translate("MainWindow", "填充y>=0的部分"))
        self.radioFill_Down.setText(_translate("MainWindow", "填充y<=0的部分"))
        self.btnFill_tightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.chkBoxFill_gridLine.setText(_translate("MainWindow", "显示网格线"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2),
                                  _translate("MainWindow", "填充图"))
        self.groupBox_4.setTitle(_translate("MainWindow", "图表操作"))
        self.btnPie_tightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.label_4.setText(_translate("MainWindow", "空心圆大小"))
        self.chkBoxPie_Legend.setText(_translate("MainWindow", "显示图例"))
        self.btnPie_redraw.setText(_translate("MainWindow", "重画饼图"))
        self.label_5.setText(_translate("MainWindow", "突出显示的块"))
        self.comboPie_explode.setItemText(0,
                                          _translate("MainWindow", "Monday"))
        self.comboPie_explode.setItemText(1,
                                          _translate("MainWindow", "Tuesday"))
        self.comboPie_explode.setItemText(
            2, _translate("MainWindow", "Wednesday"))
        self.comboPie_explode.setItemText(3,
                                          _translate("MainWindow", "Thursday"))
        self.comboPie_explode.setItemText(4,
                                          _translate("MainWindow", "Friday"))
        self.comboPie_explode.setItemText(5,
                                          _translate("MainWindow", "Saturday"))
        self.comboPie_explode.setItemText(6,
                                          _translate("MainWindow", "Sunday"))
        self.comboPie_explode.setItemText(7, _translate("MainWindow", "None"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3),
                                  _translate("MainWindow", "饼图"))
        self.groupBox_3.setTitle(_translate("MainWindow", "图表操作"))
        self.label_3.setText(_translate("MainWindow", "采样点数"))
        self.chkBoxStem_Analog.setText(_translate("MainWindow", "显示连续信号"))
        self.chkBoxStem_Holder.setText(_translate("MainWindow", "显示采样保持信号"))
        self.chkBoxStem_Legend.setText(_translate("MainWindow", "显示图例"))
        self.btnStem_redraw.setText(_translate("MainWindow", "重画曲线"))
        self.btnStem_tightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_4),
                                  _translate("MainWindow", "火柴杆图"))
        self.groupBox_5.setTitle(_translate("MainWindow", "极坐标图"))
        self.chkBoxPolar_direction.setText(_translate("MainWindow", "逆时针方向"))
        self.chkBoxPolar_gridOn.setText(_translate("MainWindow", "显示网格"))
        self.label_6.setText(_translate("MainWindow", "角度偏移量"))
        self.spinPolar_offset.setSuffix(_translate("MainWindow", "°"))
        self.btnPolar_tightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.btnPolar_redraw.setText(_translate("MainWindow", "曲线复位"))
        self.label_7.setText(_translate("MainWindow", "旋转角度"))
        self.spinPolar_rotation.setSuffix(_translate("MainWindow", "°"))
        self.btnPolar_rotate.setText(_translate("MainWindow", "旋转"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5),
                                  _translate("MainWindow", "极坐标图"))
        self.actQuit.setText(_translate("MainWindow", "退出"))
        self.actQuit.setToolTip(_translate("MainWindow", "退出"))
        self.actTightLayout.setText(_translate("MainWindow", "紧凑布局"))
        self.actTightLayout.setToolTip(_translate("MainWindow", "重新紧凑布局"))
        self.actScatterAgain.setText(_translate("MainWindow", "重新生成散点数据"))
        self.actScatterAgain.setToolTip(_translate("MainWindow", "重新生成散点数据"))
        self.actSetCursor.setText(_translate("MainWindow", "十字光标"))
        self.actSetCursor.setToolTip(_translate("MainWindow", "设置为十字光标"))