Beispiel #1
0
   def __init__(self, parent=None):
      super().__init__(parent)   #调用父类构造函数,创建窗体
      self.ui=Ui_MainWindow()    #创建UI对象
      self.ui.setupUi(self)      #构造UI界面

      self.setWindowTitle("Demo12_3, QScatterSeries、QSplineSeries、自定义QChartView")
      self.__buildStatusBar()    #创建状态栏QLabel组件

      self.chartView = QmyChartView(self)
      self.chartView.setRenderHint(QPainter.Antialiasing)
      self.chartView.setCursor(Qt.CrossCursor)  #设置鼠标指针为十字星
      self.setCentralWidget(self.chartView)     #填充满工作区
      self.chartView.mouseMove.connect(self.do_chartView_mouseMove)

      self.__createChart()    #创建图表
      self.__prepareData()    #为序列设置数据
Beispiel #2
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(814, 473)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_3.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.splitter = QtWidgets.QSplitter(self.centralWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.frameSetup = QtWidgets.QFrame(self.splitter)
        self.frameSetup.setEnabled(False)
        self.frameSetup.setMaximumSize(QtCore.QSize(300, 16777215))
        self.frameSetup.setFrameShape(QtWidgets.QFrame.Panel)
        self.frameSetup.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameSetup.setObjectName("frameSetup")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frameSetup)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.radioFill_Pos = QtWidgets.QRadioButton(self.groupBox)
        self.radioFill_Pos.setChecked(True)
        self.radioFill_Pos.setObjectName("radioFill_Pos")
        self.gridLayout.addWidget(self.radioFill_Pos, 0, 0, 1, 1)
        self.radioFill_Neg = QtWidgets.QRadioButton(self.groupBox)
        self.radioFill_Neg.setChecked(False)
        self.radioFill_Neg.setObjectName("radioFill_Neg")
        self.gridLayout.addWidget(self.radioFill_Neg, 0, 1, 1, 1)
        self.radioFill_Both = QtWidgets.QRadioButton(self.groupBox)
        self.radioFill_Both.setChecked(False)
        self.radioFill_Both.setObjectName("radioFill_Both")
        self.gridLayout.addWidget(self.radioFill_Both, 1, 0, 1, 1)
        self.radioFill_None = QtWidgets.QRadioButton(self.groupBox)
        self.radioFill_None.setObjectName("radioFill_None")
        self.gridLayout.addWidget(self.radioFill_None, 1, 1, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupBox_3 = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(10)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_5 = QtWidgets.QLabel(self.groupBox_3)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
        self.spinY_Min = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinY_Min.setMinimum(-50000.0)
        self.spinY_Min.setMaximum(50000.0)
        self.spinY_Min.setProperty("value", -5.0)
        self.spinY_Min.setObjectName("spinY_Min")
        self.gridLayout_3.addWidget(self.spinY_Min, 0, 1, 1, 1)
        self.btnY_SetRange = QtWidgets.QPushButton(self.groupBox_3)
        self.btnY_SetRange.setObjectName("btnY_SetRange")
        self.gridLayout_3.addWidget(self.btnY_SetRange, 0, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1)
        self.spinY_Max = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinY_Max.setMaximum(1000000.0)
        self.spinY_Max.setProperty("value", 5.0)
        self.spinY_Max.setObjectName("spinY_Max")
        self.gridLayout_3.addWidget(self.spinY_Max, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 2, 0, 1, 1)
        self.spinY_Ticks = QtWidgets.QSpinBox(self.groupBox_3)
        self.spinY_Ticks.setMinimum(3)
        self.spinY_Ticks.setMaximum(1000)
        self.spinY_Ticks.setProperty("value", 5)
        self.spinY_Ticks.setDisplayIntegerBase(10)
        self.spinY_Ticks.setObjectName("spinY_Ticks")
        self.gridLayout_3.addWidget(self.spinY_Ticks, 2, 1, 1, 1)
        self.chkBoxY_GridLine = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxY_GridLine.setChecked(True)
        self.chkBoxY_GridLine.setObjectName("chkBoxY_GridLine")
        self.gridLayout_3.addWidget(self.chkBoxY_GridLine, 2, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        self.groupBox_4 = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout_4.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_4.setHorizontalSpacing(6)
        self.gridLayout_4.setVerticalSpacing(10)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_7 = QtWidgets.QLabel(self.groupBox_4)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout_4.addWidget(self.label_7, 0, 0, 1, 1)
        self.spinX_Min = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinX_Min.setMinimum(-50000.0)
        self.spinX_Min.setMaximum(50000.0)
        self.spinX_Min.setProperty("value", 0.0)
        self.spinX_Min.setObjectName("spinX_Min")
        self.gridLayout_4.addWidget(self.spinX_Min, 0, 1, 1, 1)
        self.btnX_SetRange = QtWidgets.QPushButton(self.groupBox_4)
        self.btnX_SetRange.setObjectName("btnX_SetRange")
        self.gridLayout_4.addWidget(self.btnX_SetRange, 0, 2, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_4)
        self.label_8.setAlignment(QtCore.Qt.AlignCenter)
        self.label_8.setObjectName("label_8")
        self.gridLayout_4.addWidget(self.label_8, 1, 0, 1, 1)
        self.spinX_Max = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinX_Max.setMaximum(1000000.0)
        self.spinX_Max.setProperty("value", 5.0)
        self.spinX_Max.setObjectName("spinX_Max")
        self.gridLayout_4.addWidget(self.spinX_Max, 1, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout_4.addWidget(self.label_4, 2, 0, 1, 1)
        self.spinX_Ticks = QtWidgets.QSpinBox(self.groupBox_4)
        self.spinX_Ticks.setMinimum(3)
        self.spinX_Ticks.setMaximum(1000)
        self.spinX_Ticks.setProperty("value", 5)
        self.spinX_Ticks.setDisplayIntegerBase(10)
        self.spinX_Ticks.setObjectName("spinX_Ticks")
        self.gridLayout_4.addWidget(self.spinX_Ticks, 2, 1, 1, 1)
        self.chkBoxX_GridLine = QtWidgets.QCheckBox(self.groupBox_4)
        self.chkBoxX_GridLine.setChecked(True)
        self.chkBoxX_GridLine.setObjectName("chkBoxX_GridLine")
        self.gridLayout_4.addWidget(self.chkBoxX_GridLine, 2, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_4)
        spacerItem = QtWidgets.QSpacerItem(20, 53, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.frame_chart = QtWidgets.QFrame(self.splitter)
        self.frame_chart.setObjectName("frame_chart")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame_chart)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.chartView = QmyChartView(self.frame_chart)
        self.chartView.setObjectName("chartView")
        self.verticalLayout.addWidget(self.chartView)
        self.verticalLayout_3.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 814, 23))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actZoomReset = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/414.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomReset.setIcon(icon)
        self.actZoomReset.setObjectName("actZoomReset")
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/132.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon1)
        self.actQuit.setObjectName("actQuit")
        self.actZoomIn = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/418.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomIn.setIcon(icon2)
        self.actZoomIn.setObjectName("actZoomIn")
        self.actZoomOut = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/416.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomOut.setIcon(icon3)
        self.actZoomOut.setObjectName("actZoomOut")
        self.actOpen = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/001.GIF"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actOpen.setIcon(icon4)
        self.actOpen.setObjectName("actOpen")
        self.mainToolBar.addAction(self.actOpen)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actZoomIn)
        self.mainToolBar.addAction(self.actZoomOut)
        self.mainToolBar.addAction(self.actZoomReset)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actQuit)

        self.retranslateUi(MainWindow)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
        MainWindow.setTabOrder(self.radioFill_Pos, self.radioFill_Neg)
        MainWindow.setTabOrder(self.radioFill_Neg, self.radioFill_Both)
        MainWindow.setTabOrder(self.radioFill_Both, self.radioFill_None)
        MainWindow.setTabOrder(self.radioFill_None, self.spinY_Min)
        MainWindow.setTabOrder(self.spinY_Min, self.spinY_Max)
        MainWindow.setTabOrder(self.spinY_Max, self.btnY_SetRange)
        MainWindow.setTabOrder(self.btnY_SetRange, self.spinY_Ticks)
        MainWindow.setTabOrder(self.spinY_Ticks, self.chkBoxY_GridLine)
        MainWindow.setTabOrder(self.chkBoxY_GridLine, self.spinX_Min)
        MainWindow.setTabOrder(self.spinX_Min, self.spinX_Max)
        MainWindow.setTabOrder(self.spinX_Max, self.btnX_SetRange)
        MainWindow.setTabOrder(self.btnX_SetRange, self.spinX_Ticks)
        MainWindow.setTabOrder(self.spinX_Ticks, self.chkBoxX_GridLine)
Beispiel #3
0
class QmyMainWindow(QMainWindow): 

   def __init__(self, parent=None):
      super().__init__(parent)   #调用父类构造函数,创建窗体
      self.ui=Ui_MainWindow()    #创建UI对象
      self.ui.setupUi(self)      #构造UI界面

      self.setWindowTitle("Demo12_3, QScatterSeries、QSplineSeries、自定义QChartView")
      self.__buildStatusBar()    #创建状态栏QLabel组件

      self.chartView = QmyChartView(self)
      self.chartView.setRenderHint(QPainter.Antialiasing)
      self.chartView.setCursor(Qt.CrossCursor)  #设置鼠标指针为十字星
      self.setCentralWidget(self.chartView)     #填充满工作区
      self.chartView.mouseMove.connect(self.do_chartView_mouseMove)

      self.__createChart()    #创建图表
      self.__prepareData()    #为序列设置数据
      

##  ==============自定义功能函数========================
   def __buildStatusBar(self):
      self.__labChartXY = QLabel("Chart X=,  Y=  ")   #图表坐标
      self.__labChartXY.setMinimumWidth(200)
      self.ui.statusBar.addWidget(self.__labChartXY)

      self.__labHoverXY = QLabel("Hovered X=,  Y=  ") #序列hover点坐标
      self.__labHoverXY.setMinimumWidth(200)
      self.ui.statusBar.addWidget(self.__labHoverXY)

      self.__labClickXY = QLabel("Clicked X=,  Y=  ") #序列click点坐标
      self.__labClickXY.setMinimumWidth(200)
      self.ui.statusBar.addWidget(self.__labClickXY)
      

   def __createChart(self):  ##创建图表
      chart = QChart()  #创建 Chart
   ##      chart.setTitle("简单函数曲线")
      chart.legend().setVisible(True)
      self.chartView.setChart(chart)   #Chart添加到chartView

      pen=QPen()
      pen.setWidth(2)

   ##========LineSeries折线 和 ScatterSeries散点
      seriesLine = QLineSeries()
      seriesLine.setName("LineSeries折线")
      seriesLine.setPointsVisible(False)     #数据点不可见
      pen.setColor(Qt.red)
      seriesLine.setPen(pen)
      seriesLine.hovered.connect(self.do_series_hovered)    #信号 hovered
      seriesLine.clicked.connect(self.do_series_clicked)    #信号 clicked
      chart.addSeries(seriesLine)   #添加到chart

      seriesLinePoint = QScatterSeries()    #散点序列
      seriesLinePoint.setName("ScatterSeries散点")
      shape=QScatterSeries.MarkerShapeCircle  #MarkerShapeRectangle
      seriesLinePoint.setMarkerShape(shape)   #散点形状,只有2种
      seriesLinePoint.setBorderColor(Qt.yellow)
      seriesLinePoint.setBrush(QBrush(Qt.red))
      seriesLinePoint.setMarkerSize(10)      #散点大小
      seriesLinePoint.hovered.connect(self.do_series_hovered)  #信号 hovered
      seriesLinePoint.clicked.connect(self.do_series_clicked)  #信号 clicked
      chart.addSeries(seriesLinePoint)    #添加到chart

   ##======== SplineSeries 曲线和 QScatterSeries 散点
      seriesSpLine = QSplineSeries()
      seriesSpLine.setName("SplineSeries曲线")
      seriesSpLine.setPointsVisible(False)    #数据点不可见
      pen.setColor(Qt.blue)
      seriesSpLine.setPen(pen)
      seriesSpLine.hovered.connect(self.do_series_hovered)  #信号 hovered
      seriesSpLine.clicked.connect(self.do_series_clicked)  #信号 clicked


      seriesSpPoint = QScatterSeries()    #散点序列
      seriesSpPoint.setName("QScatterSeries")
      shape=QScatterSeries.MarkerShapeRectangle  #MarkerShapeCircle
      seriesSpPoint.setMarkerShape(shape) #散点形状,只有2种
      seriesSpPoint.setBorderColor(Qt.green)
      seriesSpPoint.setBrush(QBrush(Qt.blue))
      seriesSpPoint.setMarkerSize(10)     #散点大小
      seriesSpPoint.hovered.connect(self.do_series_hovered) #信号 hovered
      seriesSpPoint.clicked.connect(self.do_series_clicked) #信号 clicked

      chart.addSeries(seriesSpLine)
      chart.addSeries(seriesSpPoint)

   ##  创建缺省坐标轴
      chart.createDefaultAxes()  #创建缺省坐标轴并与序列关联
      chart.axisX().setTitleText("time(secs)")
      chart.axisX().setRange(0,10)
      chart.axisX().applyNiceNumbers()

      chart.axisY().setTitleText("value")
      chart.axisY().setRange(-2,2)
      chart.axisY().applyNiceNumbers()

      for marker in chart.legend().markers():  #QLegendMarker类型列表
         marker.clicked.connect(self.do_LegendMarkerClicked)


   def __prepareData(self):  ##为序列设置数据
      series0=self.chartView.chart().series()[0]  # QLineSeries
      series1=self.chartView.chart().series()[1]  # QScatterSeries

      series2=self.chartView.chart().series()[2]  # QSplineSeries
      series3=self.chartView.chart().series()[3]  # QScatterSeries

      series0.clear()
      series1.clear()
      series2.clear()
      series3.clear()

      t=0
      intv=0.5
      pointCount=20  #数据点个数较少,比较QLineSeries和QSplineSeries的差别
      for i in range(pointCount):
        rd=random.randint(-5,5)  #随机数,-5~+5
        y1=math.sin(2*t)+rd/50.0  
        series0.append(t,y1)     # QLineSeries
        series1.append(t,y1)     # QScatterSeries

        rd=random.randint(-5,5)  #随机数,-5~+5
        y2=1.5*math.sin(2*t+20)+rd/50.0
        series2.append(t,y2)     # QSplineSeries
        series3.append(t,y2)     # QScatterSeries

        t=t+intv

##  ==============event处理函数==========================
        
        
##  ==========由connectSlotsByName()自动连接的槽函数============        
   @pyqtSlot()  ##放大
   def on_actZoomIn_triggered(self):
      self.chartView.chart().zoom(1.2)
      
   @pyqtSlot()  ##缩小
   def on_actZoomOut_triggered(self):
      self.chartView.chart().zoom(0.8)

   @pyqtSlot()  ##复位原始大小
   def on_actZoomReset_triggered(self):
      self.chartView.chart().zoomReset()
      
           
##  =============自定义槽函数===============================        
   def do_LegendMarkerClicked(self):  ##点击图例小方块
      marker =self.sender()   #QLegendMarker类型
      if (marker.type() != QLegendMarker.LegendMarkerTypeXY):
         return 
      
      marker.series().setVisible(not marker.series().isVisible())
      marker.setVisible(True)
      alpha = 1.0
      if not marker.series().isVisible():
         alpha = 0.5

      brush = marker.labelBrush()  # QBrush
      color = brush.color()        # QColor
      color.setAlphaF(alpha)
      brush.setColor(color)
      marker.setLabelBrush(brush)

      brush = marker.brush()
      color = brush.color()
      color.setAlphaF(alpha)
      brush.setColor(color)
      marker.setBrush(brush)

      pen = marker.pen()   #QPen
      color = pen.color()
      color.setAlphaF(alpha)
      pen.setColor(color)
      marker.setPen(pen)

   def do_chartView_mouseMove(self,point):   ##鼠标移动
      pt=self.chartView.chart().mapToValue(point)  #QPointF 转换为图表的数值
      hint="Chart X=%.2f,Y=%.2f"%(pt.x(),pt.y())
      self.__labChartXY.setText(hint)  #状态栏显示

   def do_series_hovered(self,point,state):  ##序列的hovered信号
      if state:
         hint="Hovered X=%.2f,Y=%.2f"%(point.x(),point.y())
         self.__labHoverXY.setText(hint)
      else:
         self.__labHoverXY.setText("Series X=, Y=")

   def do_series_clicked(self,point):     ##序列的click信号
      hint="Clicked X=%.2f,Y=%.2f"%(point.x(),point.y())
      self.__labClickXY.setText(hint)
Beispiel #4
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(901, 533)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_13.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_13.setSpacing(6)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.frame_6 = QtWidgets.QFrame(self.centralWidget)
        self.frame_6.setMaximumSize(QtCore.QSize(16777215, 40))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_6)
        self.horizontalLayout_7.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_7.setSpacing(6)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.toolBtn_GenData = QtWidgets.QToolButton(self.frame_6)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/828.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_GenData.setIcon(icon)
        self.toolBtn_GenData.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_GenData.setObjectName("toolBtn_GenData")
        self.horizontalLayout_7.addWidget(self.toolBtn_GenData)
        self.toolBtn_Counting = QtWidgets.QToolButton(self.frame_6)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/216.GIF"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_Counting.setIcon(icon1)
        self.toolBtn_Counting.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_Counting.setObjectName("toolBtn_Counting")
        self.horizontalLayout_7.addWidget(self.toolBtn_Counting)
        self.label_7 = QtWidgets.QLabel(self.frame_6)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_7.addWidget(self.label_7)
        self.comboTheme = QtWidgets.QComboBox(self.frame_6)
        self.comboTheme.setMinimumSize(QtCore.QSize(120, 0))
        self.comboTheme.setObjectName("comboTheme")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.horizontalLayout_7.addWidget(self.comboTheme)
        self.label_8 = QtWidgets.QLabel(self.frame_6)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_7.addWidget(self.label_8)
        self.comboAnimation = QtWidgets.QComboBox(self.frame_6)
        self.comboAnimation.setObjectName("comboAnimation")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.horizontalLayout_7.addWidget(self.comboAnimation)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.toolBtn_Quit = QtWidgets.QToolButton(self.frame_6)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/132.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_Quit.setIcon(icon2)
        self.toolBtn_Quit.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_Quit.setObjectName("toolBtn_Quit")
        self.horizontalLayout_7.addWidget(self.toolBtn_Quit)
        self.verticalLayout_13.addWidget(self.frame_6)
        self.splitter_2 = QtWidgets.QSplitter(self.centralWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.frameData = QtWidgets.QFrame(self.splitter_2)
        self.frameData.setFrameShape(QtWidgets.QFrame.Panel)
        self.frameData.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameData.setObjectName("frameData")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frameData)
        self.verticalLayout_3.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.splitter = QtWidgets.QSplitter(self.frameData)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName("splitter")
        self.groupBox = QtWidgets.QGroupBox(self.splitter)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame_2 = QtWidgets.QFrame(self.groupBox)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_6.setContentsMargins(11, 2, 11, 2)
        self.horizontalLayout_6.setSpacing(6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_5 = QtWidgets.QLabel(self.frame_2)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_6.addWidget(self.label_5)
        self.spinCount = QtWidgets.QSpinBox(self.frame_2)
        self.spinCount.setMinimum(5)
        self.spinCount.setMaximum(5000)
        self.spinCount.setProperty("value", 20)
        self.spinCount.setObjectName("spinCount")
        self.horizontalLayout_6.addWidget(self.spinCount)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.frame_2)
        self.tableView = QtWidgets.QTableView(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.tableView.setFont(font)
        self.tableView.setAlternatingRowColors(True)
        self.tableView.setObjectName("tableView")
        self.tableView.horizontalHeader().setDefaultSectionSize(80)
        self.tableView.verticalHeader().setDefaultSectionSize(25)
        self.verticalLayout.addWidget(self.tableView)
        self.groupBox_7 = QtWidgets.QGroupBox(self.splitter)
        self.groupBox_7.setObjectName("groupBox_7")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_7)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.treeWidget = QtWidgets.QTreeWidget(self.groupBox_7)
        self.treeWidget.setMaximumSize(QtCore.QSize(16777215, 300))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.treeWidget.setFont(font)
        self.treeWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.treeWidget.setAlternatingRowColors(True)
        self.treeWidget.setIndentation(0)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setTextAlignment(0, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(1, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(2, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(3, QtCore.Qt.AlignCenter)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        self.treeWidget.header().setDefaultSectionSize(90)
        self.verticalLayout_2.addWidget(self.treeWidget)
        self.verticalLayout_3.addWidget(self.splitter)
        self.tabWidget = QtWidgets.QTabWidget(self.splitter_2)
        self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setDocumentMode(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_9.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_9.setSpacing(6)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.widget = QtWidgets.QWidget(self.tab)
        self.widget.setObjectName("widget")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(0)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.frame = QtWidgets.QFrame(self.widget)
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout.setSpacing(12)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btnBuildBarChart = QtWidgets.QPushButton(self.frame)
        self.btnBuildBarChart.setObjectName("btnBuildBarChart")
        self.horizontalLayout.addWidget(self.btnBuildBarChart)
        self.btnBuildBarChartH = QtWidgets.QPushButton(self.frame)
        self.btnBuildBarChartH.setObjectName("btnBuildBarChartH")
        self.horizontalLayout.addWidget(self.btnBuildBarChartH)
        spacerItem2 = QtWidgets.QSpacerItem(662, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.verticalLayout_8.addWidget(self.frame)
        self.chartViewBar = QmyChartView(self.widget)
        self.chartViewBar.setRenderHints(QtGui.QPainter.Antialiasing|QtGui.QPainter.TextAntialiasing)
        self.chartViewBar.setObjectName("chartViewBar")
        self.verticalLayout_8.addWidget(self.chartViewBar)
        self.verticalLayout_9.addWidget(self.widget)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/3.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab, icon3, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_10.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_10.setSpacing(6)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.widget_2 = QtWidgets.QWidget(self.tab_3)
        self.widget_2.setObjectName("widget_2")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget_2)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.frame_3 = QtWidgets.QFrame(self.widget_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_3.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_3.setSpacing(12)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btnBuildStackedBar = QtWidgets.QPushButton(self.frame_3)
        self.btnBuildStackedBar.setObjectName("btnBuildStackedBar")
        self.horizontalLayout_3.addWidget(self.btnBuildStackedBar)
        self.btnBuildStackedBarH = QtWidgets.QPushButton(self.frame_3)
        self.btnBuildStackedBarH.setObjectName("btnBuildStackedBarH")
        self.horizontalLayout_3.addWidget(self.btnBuildStackedBarH)
        spacerItem3 = QtWidgets.QSpacerItem(536, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.verticalLayout_5.addWidget(self.frame_3)
        self.chartViewStackedBar = QmyChartView(self.widget_2)
        self.chartViewStackedBar.setObjectName("chartViewStackedBar")
        self.verticalLayout_5.addWidget(self.chartViewStackedBar)
        self.verticalLayout_10.addWidget(self.widget_2)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/281.GIF"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_3, icon4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_12.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_12.setSpacing(6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.widget_4 = QtWidgets.QWidget(self.tab_5)
        self.widget_4.setObjectName("widget_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.widget_4)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.frame_5 = QtWidgets.QFrame(self.widget_4)
        self.frame_5.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_4.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_4.setSpacing(12)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.btnPercentBar = QtWidgets.QPushButton(self.frame_5)
        self.btnPercentBar.setObjectName("btnPercentBar")
        self.horizontalLayout_4.addWidget(self.btnPercentBar)
        self.btnPercentBarH = QtWidgets.QPushButton(self.frame_5)
        self.btnPercentBarH.setObjectName("btnPercentBarH")
        self.horizontalLayout_4.addWidget(self.btnPercentBarH)
        spacerItem4 = QtWidgets.QSpacerItem(523, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem4)
        self.verticalLayout_6.addWidget(self.frame_5)
        self.chartViewPercentBar = QmyChartView(self.widget_4)
        self.chartViewPercentBar.setObjectName("chartViewPercentBar")
        self.verticalLayout_6.addWidget(self.chartViewPercentBar)
        self.verticalLayout_12.addWidget(self.widget_4)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/images/f4.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon5, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_11.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_11.setSpacing(6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.widget_3 = QtWidgets.QWidget(self.tab_2)
        self.widget_3.setObjectName("widget_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget_3)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.frame_4 = QtWidgets.QFrame(self.widget_3)
        self.frame_4.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4)
        self.horizontalLayout_2.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.frame_4)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.comboCourse = QtWidgets.QComboBox(self.frame_4)
        self.comboCourse.setMinimumSize(QtCore.QSize(60, 0))
        self.comboCourse.setObjectName("comboCourse")
        self.comboCourse.addItem("")
        self.comboCourse.addItem("")
        self.comboCourse.addItem("")
        self.horizontalLayout_2.addWidget(self.comboCourse)
        self.btnDrawPieChart = QtWidgets.QPushButton(self.frame_4)
        self.btnDrawPieChart.setObjectName("btnDrawPieChart")
        self.horizontalLayout_2.addWidget(self.btnDrawPieChart)
        self.label_2 = QtWidgets.QLabel(self.frame_4)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinHoleSize = QtWidgets.QDoubleSpinBox(self.frame_4)
        self.spinHoleSize.setMinimumSize(QtCore.QSize(70, 0))
        self.spinHoleSize.setDecimals(2)
        self.spinHoleSize.setMaximum(1.0)
        self.spinHoleSize.setSingleStep(0.1)
        self.spinHoleSize.setObjectName("spinHoleSize")
        self.horizontalLayout_2.addWidget(self.spinHoleSize)
        self.label_3 = QtWidgets.QLabel(self.frame_4)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_2.addWidget(self.label_3)
        self.spinPieSize = QtWidgets.QDoubleSpinBox(self.frame_4)
        self.spinPieSize.setMinimumSize(QtCore.QSize(70, 0))
        self.spinPieSize.setMaximum(1.0)
        self.spinPieSize.setSingleStep(0.1)
        self.spinPieSize.setProperty("value", 0.7)
        self.spinPieSize.setObjectName("spinPieSize")
        self.horizontalLayout_2.addWidget(self.spinPieSize)
        self.chkBox_PieLegend = QtWidgets.QCheckBox(self.frame_4)
        self.chkBox_PieLegend.setChecked(True)
        self.chkBox_PieLegend.setObjectName("chkBox_PieLegend")
        self.horizontalLayout_2.addWidget(self.chkBox_PieLegend)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.verticalLayout_4.addWidget(self.frame_4)
        self.chartViewPie = QmyChartView(self.widget_3)
        self.chartViewPie.setObjectName("chartViewPie")
        self.verticalLayout_4.addWidget(self.chartViewPie)
        self.verticalLayout_11.addWidget(self.widget_3)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/icons/images/43.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_2, icon6, "")
        self.verticalLayout_13.addWidget(self.splitter_2)
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.toolBtn_Quit.clicked.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #5
0
class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(901, 533)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_13 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_13.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_13.setSpacing(6)
        self.verticalLayout_13.setObjectName("verticalLayout_13")
        self.frame_6 = QtWidgets.QFrame(self.centralWidget)
        self.frame_6.setMaximumSize(QtCore.QSize(16777215, 40))
        self.frame_6.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_6.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_6.setObjectName("frame_6")
        self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.frame_6)
        self.horizontalLayout_7.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_7.setSpacing(6)
        self.horizontalLayout_7.setObjectName("horizontalLayout_7")
        self.toolBtn_GenData = QtWidgets.QToolButton(self.frame_6)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/828.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_GenData.setIcon(icon)
        self.toolBtn_GenData.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_GenData.setObjectName("toolBtn_GenData")
        self.horizontalLayout_7.addWidget(self.toolBtn_GenData)
        self.toolBtn_Counting = QtWidgets.QToolButton(self.frame_6)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/216.GIF"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_Counting.setIcon(icon1)
        self.toolBtn_Counting.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_Counting.setObjectName("toolBtn_Counting")
        self.horizontalLayout_7.addWidget(self.toolBtn_Counting)
        self.label_7 = QtWidgets.QLabel(self.frame_6)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_7.addWidget(self.label_7)
        self.comboTheme = QtWidgets.QComboBox(self.frame_6)
        self.comboTheme.setMinimumSize(QtCore.QSize(120, 0))
        self.comboTheme.setObjectName("comboTheme")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.horizontalLayout_7.addWidget(self.comboTheme)
        self.label_8 = QtWidgets.QLabel(self.frame_6)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_7.addWidget(self.label_8)
        self.comboAnimation = QtWidgets.QComboBox(self.frame_6)
        self.comboAnimation.setObjectName("comboAnimation")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.comboAnimation.addItem("")
        self.horizontalLayout_7.addWidget(self.comboAnimation)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_7.addItem(spacerItem)
        self.toolBtn_Quit = QtWidgets.QToolButton(self.frame_6)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/132.bmp"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.toolBtn_Quit.setIcon(icon2)
        self.toolBtn_Quit.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.toolBtn_Quit.setObjectName("toolBtn_Quit")
        self.horizontalLayout_7.addWidget(self.toolBtn_Quit)
        self.verticalLayout_13.addWidget(self.frame_6)
        self.splitter_2 = QtWidgets.QSplitter(self.centralWidget)
        self.splitter_2.setOrientation(QtCore.Qt.Horizontal)
        self.splitter_2.setObjectName("splitter_2")
        self.frameData = QtWidgets.QFrame(self.splitter_2)
        self.frameData.setFrameShape(QtWidgets.QFrame.Panel)
        self.frameData.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameData.setObjectName("frameData")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.frameData)
        self.verticalLayout_3.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.splitter = QtWidgets.QSplitter(self.frameData)
        self.splitter.setOrientation(QtCore.Qt.Vertical)
        self.splitter.setObjectName("splitter")
        self.groupBox = QtWidgets.QGroupBox(self.splitter)
        self.groupBox.setObjectName("groupBox")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.frame_2 = QtWidgets.QFrame(self.groupBox)
        self.frame_2.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_6.setContentsMargins(11, 2, 11, 2)
        self.horizontalLayout_6.setSpacing(6)
        self.horizontalLayout_6.setObjectName("horizontalLayout_6")
        self.label_5 = QtWidgets.QLabel(self.frame_2)
        self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout_6.addWidget(self.label_5)
        self.spinCount = QtWidgets.QSpinBox(self.frame_2)
        self.spinCount.setMinimum(5)
        self.spinCount.setMaximum(5000)
        self.spinCount.setProperty("value", 20)
        self.spinCount.setObjectName("spinCount")
        self.horizontalLayout_6.addWidget(self.spinCount)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_6.addItem(spacerItem1)
        self.verticalLayout.addWidget(self.frame_2)
        self.tableView = QtWidgets.QTableView(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(10)
        self.tableView.setFont(font)
        self.tableView.setAlternatingRowColors(True)
        self.tableView.setObjectName("tableView")
        self.tableView.horizontalHeader().setDefaultSectionSize(80)
        self.tableView.verticalHeader().setDefaultSectionSize(25)
        self.verticalLayout.addWidget(self.tableView)
        self.groupBox_7 = QtWidgets.QGroupBox(self.splitter)
        self.groupBox_7.setObjectName("groupBox_7")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_7)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.treeWidget = QtWidgets.QTreeWidget(self.groupBox_7)
        self.treeWidget.setMaximumSize(QtCore.QSize(16777215, 300))
        font = QtGui.QFont()
        font.setPointSize(10)
        self.treeWidget.setFont(font)
        self.treeWidget.setEditTriggers(QtWidgets.QAbstractItemView.NoEditTriggers)
        self.treeWidget.setAlternatingRowColors(True)
        self.treeWidget.setIndentation(0)
        self.treeWidget.setObjectName("treeWidget")
        self.treeWidget.headerItem().setTextAlignment(0, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(1, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(2, QtCore.Qt.AlignCenter)
        self.treeWidget.headerItem().setTextAlignment(3, QtCore.Qt.AlignCenter)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        item_0 = QtWidgets.QTreeWidgetItem(self.treeWidget)
        self.treeWidget.header().setDefaultSectionSize(90)
        self.verticalLayout_2.addWidget(self.treeWidget)
        self.verticalLayout_3.addWidget(self.splitter)
        self.tabWidget = QtWidgets.QTabWidget(self.splitter_2)
        self.tabWidget.setTabPosition(QtWidgets.QTabWidget.North)
        self.tabWidget.setTabShape(QtWidgets.QTabWidget.Rounded)
        self.tabWidget.setDocumentMode(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab = QtWidgets.QWidget()
        self.tab.setObjectName("tab")
        self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.tab)
        self.verticalLayout_9.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_9.setSpacing(6)
        self.verticalLayout_9.setObjectName("verticalLayout_9")
        self.widget = QtWidgets.QWidget(self.tab)
        self.widget.setObjectName("widget")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.widget)
        self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_8.setSpacing(0)
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.frame = QtWidgets.QFrame(self.widget)
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.frame)
        self.horizontalLayout.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout.setSpacing(12)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.btnBuildBarChart = QtWidgets.QPushButton(self.frame)
        self.btnBuildBarChart.setObjectName("btnBuildBarChart")
        self.horizontalLayout.addWidget(self.btnBuildBarChart)
        self.btnBuildBarChartH = QtWidgets.QPushButton(self.frame)
        self.btnBuildBarChartH.setObjectName("btnBuildBarChartH")
        self.horizontalLayout.addWidget(self.btnBuildBarChartH)
        spacerItem2 = QtWidgets.QSpacerItem(662, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem2)
        self.verticalLayout_8.addWidget(self.frame)
        self.chartViewBar = QmyChartView(self.widget)
        self.chartViewBar.setRenderHints(QtGui.QPainter.Antialiasing|QtGui.QPainter.TextAntialiasing)
        self.chartViewBar.setObjectName("chartViewBar")
        self.verticalLayout_8.addWidget(self.chartViewBar)
        self.verticalLayout_9.addWidget(self.widget)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/3.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab, icon3, "")
        self.tab_3 = QtWidgets.QWidget()
        self.tab_3.setObjectName("tab_3")
        self.verticalLayout_10 = QtWidgets.QVBoxLayout(self.tab_3)
        self.verticalLayout_10.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_10.setSpacing(6)
        self.verticalLayout_10.setObjectName("verticalLayout_10")
        self.widget_2 = QtWidgets.QWidget(self.tab_3)
        self.widget_2.setObjectName("widget_2")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.widget_2)
        self.verticalLayout_5.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_5.setSpacing(0)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.frame_3 = QtWidgets.QFrame(self.widget_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.frame_3)
        self.horizontalLayout_3.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_3.setSpacing(12)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.btnBuildStackedBar = QtWidgets.QPushButton(self.frame_3)
        self.btnBuildStackedBar.setObjectName("btnBuildStackedBar")
        self.horizontalLayout_3.addWidget(self.btnBuildStackedBar)
        self.btnBuildStackedBarH = QtWidgets.QPushButton(self.frame_3)
        self.btnBuildStackedBarH.setObjectName("btnBuildStackedBarH")
        self.horizontalLayout_3.addWidget(self.btnBuildStackedBarH)
        spacerItem3 = QtWidgets.QSpacerItem(536, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem3)
        self.verticalLayout_5.addWidget(self.frame_3)
        self.chartViewStackedBar = QmyChartView(self.widget_2)
        self.chartViewStackedBar.setObjectName("chartViewStackedBar")
        self.verticalLayout_5.addWidget(self.chartViewStackedBar)
        self.verticalLayout_10.addWidget(self.widget_2)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/281.GIF"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_3, icon4, "")
        self.tab_5 = QtWidgets.QWidget()
        self.tab_5.setObjectName("tab_5")
        self.verticalLayout_12 = QtWidgets.QVBoxLayout(self.tab_5)
        self.verticalLayout_12.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_12.setSpacing(6)
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.widget_4 = QtWidgets.QWidget(self.tab_5)
        self.widget_4.setObjectName("widget_4")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.widget_4)
        self.verticalLayout_6.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_6.setSpacing(0)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.frame_5 = QtWidgets.QFrame(self.widget_4)
        self.frame_5.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_5.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_5.setObjectName("frame_5")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.frame_5)
        self.horizontalLayout_4.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_4.setSpacing(12)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.btnPercentBar = QtWidgets.QPushButton(self.frame_5)
        self.btnPercentBar.setObjectName("btnPercentBar")
        self.horizontalLayout_4.addWidget(self.btnPercentBar)
        self.btnPercentBarH = QtWidgets.QPushButton(self.frame_5)
        self.btnPercentBarH.setObjectName("btnPercentBarH")
        self.horizontalLayout_4.addWidget(self.btnPercentBarH)
        spacerItem4 = QtWidgets.QSpacerItem(523, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_4.addItem(spacerItem4)
        self.verticalLayout_6.addWidget(self.frame_5)
        self.chartViewPercentBar = QmyChartView(self.widget_4)
        self.chartViewPercentBar.setObjectName("chartViewPercentBar")
        self.verticalLayout_6.addWidget(self.chartViewPercentBar)
        self.verticalLayout_12.addWidget(self.widget_4)
        icon5 = QtGui.QIcon()
        icon5.addPixmap(QtGui.QPixmap(":/icons/images/f4.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_5, icon5, "")
        self.tab_2 = QtWidgets.QWidget()
        self.tab_2.setObjectName("tab_2")
        self.verticalLayout_11 = QtWidgets.QVBoxLayout(self.tab_2)
        self.verticalLayout_11.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_11.setSpacing(6)
        self.verticalLayout_11.setObjectName("verticalLayout_11")
        self.widget_3 = QtWidgets.QWidget(self.tab_2)
        self.widget_3.setObjectName("widget_3")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.widget_3)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(0)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.frame_4 = QtWidgets.QFrame(self.widget_3)
        self.frame_4.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_4)
        self.horizontalLayout_2.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout_2.setSpacing(6)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.frame_4)
        self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.comboCourse = QtWidgets.QComboBox(self.frame_4)
        self.comboCourse.setMinimumSize(QtCore.QSize(60, 0))
        self.comboCourse.setObjectName("comboCourse")
        self.comboCourse.addItem("")
        self.comboCourse.addItem("")
        self.comboCourse.addItem("")
        self.horizontalLayout_2.addWidget(self.comboCourse)
        self.btnDrawPieChart = QtWidgets.QPushButton(self.frame_4)
        self.btnDrawPieChart.setObjectName("btnDrawPieChart")
        self.horizontalLayout_2.addWidget(self.btnDrawPieChart)
        self.label_2 = QtWidgets.QLabel(self.frame_4)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.spinHoleSize = QtWidgets.QDoubleSpinBox(self.frame_4)
        self.spinHoleSize.setMinimumSize(QtCore.QSize(70, 0))
        self.spinHoleSize.setDecimals(2)
        self.spinHoleSize.setMaximum(1.0)
        self.spinHoleSize.setSingleStep(0.1)
        self.spinHoleSize.setObjectName("spinHoleSize")
        self.horizontalLayout_2.addWidget(self.spinHoleSize)
        self.label_3 = QtWidgets.QLabel(self.frame_4)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_2.addWidget(self.label_3)
        self.spinPieSize = QtWidgets.QDoubleSpinBox(self.frame_4)
        self.spinPieSize.setMinimumSize(QtCore.QSize(70, 0))
        self.spinPieSize.setMaximum(1.0)
        self.spinPieSize.setSingleStep(0.1)
        self.spinPieSize.setProperty("value", 0.7)
        self.spinPieSize.setObjectName("spinPieSize")
        self.horizontalLayout_2.addWidget(self.spinPieSize)
        self.chkBox_PieLegend = QtWidgets.QCheckBox(self.frame_4)
        self.chkBox_PieLegend.setChecked(True)
        self.chkBox_PieLegend.setObjectName("chkBox_PieLegend")
        self.horizontalLayout_2.addWidget(self.chkBox_PieLegend)
        spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem5)
        self.verticalLayout_4.addWidget(self.frame_4)
        self.chartViewPie = QmyChartView(self.widget_3)
        self.chartViewPie.setObjectName("chartViewPie")
        self.verticalLayout_4.addWidget(self.chartViewPie)
        self.verticalLayout_11.addWidget(self.widget_3)
        icon6 = QtGui.QIcon()
        icon6.addPixmap(QtGui.QPixmap(":/icons/images/43.ico"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.tabWidget.addTab(self.tab_2, icon6, "")
        self.verticalLayout_13.addWidget(self.splitter_2)
        MainWindow.setCentralWidget(self.centralWidget)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)

        self.retranslateUi(MainWindow)
        self.tabWidget.setCurrentIndex(0)
        self.toolBtn_Quit.clicked.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "饼图和柱状图"))
        self.toolBtn_GenData.setToolTip(_translate("MainWindow", "重新生成数据并统计"))
        self.toolBtn_GenData.setText(_translate("MainWindow", "重新生成数据"))
        self.toolBtn_Counting.setToolTip(_translate("MainWindow", "重新统计"))
        self.toolBtn_Counting.setText(_translate("MainWindow", "重新统计"))
        self.label_7.setText(_translate("MainWindow", "图表主题"))
        self.comboTheme.setItemText(0, _translate("MainWindow", "Light"))
        self.comboTheme.setItemText(1, _translate("MainWindow", "BlueCerulean"))
        self.comboTheme.setItemText(2, _translate("MainWindow", "Dark"))
        self.comboTheme.setItemText(3, _translate("MainWindow", "BrownSand"))
        self.comboTheme.setItemText(4, _translate("MainWindow", "BlueNcs"))
        self.comboTheme.setItemText(5, _translate("MainWindow", "HighContrast"))
        self.comboTheme.setItemText(6, _translate("MainWindow", "BlueIcy"))
        self.comboTheme.setItemText(7, _translate("MainWindow", "Qt"))
        self.label_8.setText(_translate("MainWindow", "图表动画效果"))
        self.comboAnimation.setItemText(0, _translate("MainWindow", "NoAnimation"))
        self.comboAnimation.setItemText(1, _translate("MainWindow", "GridAxisAnimations"))
        self.comboAnimation.setItemText(2, _translate("MainWindow", "SeriesAnimations"))
        self.comboAnimation.setItemText(3, _translate("MainWindow", "AllAnimations"))
        self.toolBtn_Quit.setText(_translate("MainWindow", "退出"))
        self.groupBox.setTitle(_translate("MainWindow", "原始分数"))
        self.label_5.setText(_translate("MainWindow", "学生人数"))
        self.groupBox_7.setTitle(_translate("MainWindow", "人数统计"))
        self.treeWidget.headerItem().setText(0, _translate("MainWindow", "分数段"))
        self.treeWidget.headerItem().setText(1, _translate("MainWindow", "数学"))
        self.treeWidget.headerItem().setText(2, _translate("MainWindow", "语文"))
        self.treeWidget.headerItem().setText(3, _translate("MainWindow", "英语"))
        __sortingEnabled = self.treeWidget.isSortingEnabled()
        self.treeWidget.setSortingEnabled(False)
        self.treeWidget.topLevelItem(0).setText(0, _translate("MainWindow", "60分以下"))
        self.treeWidget.topLevelItem(1).setText(0, _translate("MainWindow", "60-69分"))
        self.treeWidget.topLevelItem(2).setText(0, _translate("MainWindow", "70-79分"))
        self.treeWidget.topLevelItem(3).setText(0, _translate("MainWindow", "80-89分"))
        self.treeWidget.topLevelItem(4).setText(0, _translate("MainWindow", "90分以上"))
        self.treeWidget.setSortingEnabled(__sortingEnabled)
        self.btnBuildBarChart.setText(_translate("MainWindow", "绘制柱状图"))
        self.btnBuildBarChartH.setText(_translate("MainWindow", "绘制水平柱状图"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("MainWindow", "BarChart"))
        self.btnBuildStackedBar.setText(_translate("MainWindow", "绘制堆叠柱状图"))
        self.btnBuildStackedBarH.setText(_translate("MainWindow", "绘制水平堆叠柱状图"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_3), _translate("MainWindow", "StackedBar"))
        self.btnPercentBar.setText(_translate("MainWindow", "绘制百分比柱状图"))
        self.btnPercentBarH.setText(_translate("MainWindow", "绘制水平百分比柱状图"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_5), _translate("MainWindow", "PercentBar"))
        self.label.setText(_translate("MainWindow", "分析数据"))
        self.comboCourse.setItemText(0, _translate("MainWindow", "数学"))
        self.comboCourse.setItemText(1, _translate("MainWindow", "语文"))
        self.comboCourse.setItemText(2, _translate("MainWindow", "英语"))
        self.btnDrawPieChart.setText(_translate("MainWindow", "绘制饼图"))
        self.label_2.setText(_translate("MainWindow", "HoleSize"))
        self.label_3.setText(_translate("MainWindow", "PieSize"))
        self.chkBox_PieLegend.setText(_translate("MainWindow", "显示图例"))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("MainWindow", "PieChart"))
Beispiel #6
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(760, 484)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        MainWindow.setStyleSheet("QSpinBox, QDoubleSpinBox{\n"
                                 "    max-width:100px;\n"
                                 "    min-height:20px;\n"
                                 "}")
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_3.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.splitter = QtWidgets.QSplitter(self.centralWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.frameSetup = QtWidgets.QFrame(self.splitter)
        self.frameSetup.setEnabled(True)
        self.frameSetup.setMaximumSize(QtCore.QSize(300, 16777215))
        self.frameSetup.setFrameShape(QtWidgets.QFrame.Panel)
        self.frameSetup.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameSetup.setObjectName("frameSetup")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frameSetup)
        self.verticalLayout_2.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.groupBox = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout.setContentsMargins(11, 5, 11, 5)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        self.label_2.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_2.setIndent(10)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout.addWidget(self.label_2)
        self.comboTheme = QtWidgets.QComboBox(self.groupBox)
        self.comboTheme.setMaximumSize(QtCore.QSize(100, 16777215))
        self.comboTheme.setObjectName("comboTheme")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.horizontalLayout.addWidget(self.comboTheme)
        self.chkBox_Legend = QtWidgets.QCheckBox(self.groupBox)
        self.chkBox_Legend.setChecked(True)
        self.chkBox_Legend.setObjectName("chkBox_Legend")
        self.horizontalLayout.addWidget(self.chkBox_Legend)
        self.verticalLayout_2.addWidget(self.groupBox)
        self.groupBox_3 = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_3.setContentsMargins(11, 5, 11, 5)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(10)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_5 = QtWidgets.QLabel(self.groupBox_3)
        self.label_5.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_5.setIndent(10)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
        self.spinMag_Min = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinMag_Min.setMaximumSize(QtCore.QSize(102, 16777215))
        self.spinMag_Min.setDecimals(1)
        self.spinMag_Min.setMinimum(-90000.0)
        self.spinMag_Min.setMaximum(90000.0)
        self.spinMag_Min.setSingleStep(10.0)
        self.spinMag_Min.setProperty("value", -40.0)
        self.spinMag_Min.setObjectName("spinMag_Min")
        self.gridLayout_3.addWidget(self.spinMag_Min, 0, 1, 1, 1)
        self.btnMag_SetRange = QtWidgets.QPushButton(self.groupBox_3)
        self.btnMag_SetRange.setObjectName("btnMag_SetRange")
        self.gridLayout_3.addWidget(self.btnMag_SetRange, 0, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_6.setIndent(10)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1)
        self.spinMag_Max = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinMag_Max.setDecimals(1)
        self.spinMag_Max.setMinimum(-90000.0)
        self.spinMag_Max.setMaximum(90000.0)
        self.spinMag_Max.setSingleStep(10.0)
        self.spinMag_Max.setProperty("value", 10.0)
        self.spinMag_Max.setObjectName("spinMag_Max")
        self.gridLayout_3.addWidget(self.spinMag_Max, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_3.setIndent(10)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 2, 0, 1, 1)
        self.spinMag_Ticks = QtWidgets.QSpinBox(self.groupBox_3)
        self.spinMag_Ticks.setMinimum(3)
        self.spinMag_Ticks.setMaximum(1000)
        self.spinMag_Ticks.setProperty("value", 6)
        self.spinMag_Ticks.setDisplayIntegerBase(10)
        self.spinMag_Ticks.setObjectName("spinMag_Ticks")
        self.gridLayout_3.addWidget(self.spinMag_Ticks, 2, 1, 1, 1)
        self.chkBoxMag_Point = QtWidgets.QCheckBox(self.groupBox_3)
        self.chkBoxMag_Point.setChecked(True)
        self.chkBoxMag_Point.setObjectName("chkBoxMag_Point")
        self.gridLayout_3.addWidget(self.chkBoxMag_Point, 2, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_3)
        self.groupBox_5 = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox_5.setObjectName("groupBox_5")
        self.gridLayout_4 = QtWidgets.QGridLayout(self.groupBox_5)
        self.gridLayout_4.setContentsMargins(11, 5, 11, 5)
        self.gridLayout_4.setHorizontalSpacing(6)
        self.gridLayout_4.setVerticalSpacing(10)
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_9 = QtWidgets.QLabel(self.groupBox_5)
        self.label_9.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_9.setIndent(10)
        self.label_9.setObjectName("label_9")
        self.gridLayout_4.addWidget(self.label_9, 0, 0, 1, 1)
        self.spinPh_Min = QtWidgets.QDoubleSpinBox(self.groupBox_5)
        self.spinPh_Min.setDecimals(1)
        self.spinPh_Min.setMinimum(-50000.0)
        self.spinPh_Min.setMaximum(50000.0)
        self.spinPh_Min.setSingleStep(10.0)
        self.spinPh_Min.setProperty("value", -200.0)
        self.spinPh_Min.setObjectName("spinPh_Min")
        self.gridLayout_4.addWidget(self.spinPh_Min, 0, 1, 1, 1)
        self.btnPh_SetRange = QtWidgets.QPushButton(self.groupBox_5)
        self.btnPh_SetRange.setObjectName("btnPh_SetRange")
        self.gridLayout_4.addWidget(self.btnPh_SetRange, 0, 2, 1, 1)
        self.label_10 = QtWidgets.QLabel(self.groupBox_5)
        self.label_10.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_10.setIndent(10)
        self.label_10.setObjectName("label_10")
        self.gridLayout_4.addWidget(self.label_10, 1, 0, 1, 1)
        self.spinPh_Max = QtWidgets.QDoubleSpinBox(self.groupBox_5)
        self.spinPh_Max.setDecimals(1)
        self.spinPh_Max.setMinimum(-50000.0)
        self.spinPh_Max.setMaximum(50000.0)
        self.spinPh_Max.setSingleStep(10.0)
        self.spinPh_Max.setProperty("value", 0.0)
        self.spinPh_Max.setObjectName("spinPh_Max")
        self.gridLayout_4.addWidget(self.spinPh_Max, 1, 1, 1, 1)
        self.label_11 = QtWidgets.QLabel(self.groupBox_5)
        self.label_11.setAlignment(QtCore.Qt.AlignRight
                                   | QtCore.Qt.AlignTrailing
                                   | QtCore.Qt.AlignVCenter)
        self.label_11.setIndent(10)
        self.label_11.setObjectName("label_11")
        self.gridLayout_4.addWidget(self.label_11, 2, 0, 1, 1)
        self.spinPh_Ticks = QtWidgets.QSpinBox(self.groupBox_5)
        self.spinPh_Ticks.setMinimum(3)
        self.spinPh_Ticks.setMaximum(1000)
        self.spinPh_Ticks.setProperty("value", 6)
        self.spinPh_Ticks.setDisplayIntegerBase(10)
        self.spinPh_Ticks.setObjectName("spinPh_Ticks")
        self.gridLayout_4.addWidget(self.spinPh_Ticks, 2, 1, 1, 1)
        self.chkBoxPh_Point = QtWidgets.QCheckBox(self.groupBox_5)
        self.chkBoxPh_Point.setChecked(True)
        self.chkBoxPh_Point.setObjectName("chkBoxPh_Point")
        self.gridLayout_4.addWidget(self.chkBoxPh_Point, 2, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_5)
        self.groupBox_4 = QtWidgets.QGroupBox(self.frameSetup)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout.setContentsMargins(11, 5, 11, 5)
        self.gridLayout.setSpacing(6)
        self.gridLayout.setObjectName("gridLayout")
        self.spinX_Max = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinX_Max.setMinimum(0.0)
        self.spinX_Max.setMaximum(9000000.0)
        self.spinX_Max.setSingleStep(10.0)
        self.spinX_Max.setProperty("value", 100.0)
        self.spinX_Max.setObjectName("spinX_Max")
        self.gridLayout.addWidget(self.spinX_Max, 1, 1, 1, 1)
        self.label = QtWidgets.QLabel(self.groupBox_4)
        self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing
                                | QtCore.Qt.AlignVCenter)
        self.label.setIndent(10)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 0, 1, 1)
        self.spinX_MinorTicks = QtWidgets.QSpinBox(self.groupBox_4)
        self.spinX_MinorTicks.setMinimum(1)
        self.spinX_MinorTicks.setMaximum(100)
        self.spinX_MinorTicks.setProperty("value", 9)
        self.spinX_MinorTicks.setObjectName("spinX_MinorTicks")
        self.gridLayout.addWidget(self.spinX_MinorTicks, 2, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(self.groupBox_4)
        self.label_8.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_8.setIndent(10)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 1, 0, 1, 1)
        self.spinX_Min = QtWidgets.QDoubleSpinBox(self.groupBox_4)
        self.spinX_Min.setDecimals(3)
        self.spinX_Min.setMinimum(0.001)
        self.spinX_Min.setMaximum(50000.0)
        self.spinX_Min.setSingleStep(0.1)
        self.spinX_Min.setProperty("value", 0.1)
        self.spinX_Min.setObjectName("spinX_Min")
        self.gridLayout.addWidget(self.spinX_Min, 0, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_4)
        self.label_7.setAlignment(QtCore.Qt.AlignRight
                                  | QtCore.Qt.AlignTrailing
                                  | QtCore.Qt.AlignVCenter)
        self.label_7.setIndent(10)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 0, 0, 1, 1)
        self.btnX_SetRange = QtWidgets.QPushButton(self.groupBox_4)
        self.btnX_SetRange.setObjectName("btnX_SetRange")
        self.gridLayout.addWidget(self.btnX_SetRange, 0, 2, 1, 1)
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 2, 2, 1, 1)
        self.verticalLayout_2.addWidget(self.groupBox_4)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.frameChart = QtWidgets.QFrame(self.splitter)
        self.frameChart.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frameChart.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameChart.setObjectName("frameChart")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frameChart)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.chartView = QmyChartView(self.frameChart)
        self.chartView.setObjectName("chartView")
        self.verticalLayout.addWidget(self.chartView)
        self.verticalLayout_3.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralWidget)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actZoomReset = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/icons/images/414.bmp"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomReset.setIcon(icon)
        self.actZoomReset.setObjectName("actZoomReset")
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/icons/images/132.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon1)
        self.actQuit.setObjectName("actQuit")
        self.actZoomIn = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/icons/images/418.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomIn.setIcon(icon2)
        self.actZoomIn.setObjectName("actZoomIn")
        self.actZoomOut = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/icons/images/416.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomOut.setIcon(icon3)
        self.actZoomOut.setObjectName("actZoomOut")
        self.actOpen = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/icons/images/001.GIF"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actOpen.setIcon(icon4)
        self.actOpen.setObjectName("actOpen")
        self.mainToolBar.addAction(self.actOpen)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actZoomIn)
        self.mainToolBar.addAction(self.actZoomOut)
        self.mainToolBar.addAction(self.actZoomReset)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actQuit)

        self.retranslateUi(MainWindow)
        self.actQuit.triggered.connect(MainWindow.close)
        QtCore.QMetaObject.connectSlotsByName(MainWindow)
Beispiel #7
0
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(593, 506)
        font = QtGui.QFont()
        font.setPointSize(10)
        MainWindow.setFont(font)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.centralWidget)
        self.verticalLayout_6.setContentsMargins(2, 2, 2, 2)
        self.verticalLayout_6.setSpacing(6)
        self.verticalLayout_6.setObjectName("verticalLayout_6")
        self.splitter = QtWidgets.QSplitter(self.centralWidget)
        self.splitter.setOrientation(QtCore.Qt.Horizontal)
        self.splitter.setObjectName("splitter")
        self.tabWidget = QtWidgets.QTabWidget(self.splitter)
        self.tabWidget.setDocumentMode(True)
        self.tabWidget.setObjectName("tabWidget")
        self.tab_Data = QtWidgets.QWidget()
        self.tab_Data.setObjectName("tab_Data")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_Data)
        self.verticalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_3.setSpacing(6)
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.frame = QtWidgets.QFrame(self.tab_Data)
        self.frame.setFrameShape(QtWidgets.QFrame.Panel)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.frame)
        self.verticalLayout.setContentsMargins(5, 5, 5, 5)
        self.verticalLayout.setSpacing(6)
        self.verticalLayout.setObjectName("verticalLayout")
        self.tableView = QtWidgets.QTableView(self.frame)
        self.tableView.setAlternatingRowColors(True)
        self.tableView.setObjectName("tableView")
        self.tableView.horizontalHeader().setDefaultSectionSize(50)
        self.tableView.verticalHeader().setDefaultSectionSize(24)
        self.verticalLayout.addWidget(self.tableView)
        self.verticalLayout_3.addWidget(self.frame)
        self.tabWidget.addTab(self.tab_Data, "")
        self.tab_Setup = QtWidgets.QWidget()
        self.tab_Setup.setEnabled(False)
        self.tab_Setup.setObjectName("tab_Setup")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.tab_Setup)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(6)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.frameData = QtWidgets.QFrame(self.tab_Setup)
        self.frameData.setFrameShape(QtWidgets.QFrame.Panel)
        self.frameData.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frameData.setObjectName("frameData")
        self.verticalLayout_5 = QtWidgets.QVBoxLayout(self.frameData)
        self.verticalLayout_5.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_5.setSpacing(6)
        self.verticalLayout_5.setObjectName("verticalLayout_5")
        self.groupBox = QtWidgets.QGroupBox(self.frameData)
        self.groupBox.setObjectName("groupBox")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox)
        self.gridLayout_2.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_2.setHorizontalSpacing(6)
        self.gridLayout_2.setVerticalSpacing(10)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label = QtWidgets.QLabel(self.groupBox)
        self.label.setAlignment(QtCore.Qt.AlignCenter)
        self.label.setObjectName("label")
        self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
        self.comboTheme = QtWidgets.QComboBox(self.groupBox)
        self.comboTheme.setMinimumSize(QtCore.QSize(120, 0))
        self.comboTheme.setObjectName("comboTheme")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.comboTheme.addItem("")
        self.gridLayout_2.addWidget(self.comboTheme, 0, 1, 1, 1)
        self.chkBox_Legend = QtWidgets.QCheckBox(self.groupBox)
        self.chkBox_Legend.setChecked(True)
        self.chkBox_Legend.setObjectName("chkBox_Legend")
        self.gridLayout_2.addWidget(self.chkBox_Legend, 1, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.frameData)
        self.groupBox_2.setObjectName("groupBox_2")
        self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.groupBox_2)
        self.verticalLayout_7.setContentsMargins(11, 11, 11, 11)
        self.verticalLayout_7.setSpacing(6)
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.chkBox_Caps = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox_Caps.setObjectName("chkBox_Caps")
        self.verticalLayout_7.addWidget(self.chkBox_Caps)
        self.chkBox_Outline = QtWidgets.QCheckBox(self.groupBox_2)
        self.chkBox_Outline.setObjectName("chkBox_Outline")
        self.verticalLayout_7.addWidget(self.chkBox_Outline)
        self.verticalLayout_5.addWidget(self.groupBox_2)
        self.groupBox_3 = QtWidgets.QGroupBox(self.frameData)
        self.groupBox_3.setObjectName("groupBox_3")
        self.gridLayout_3 = QtWidgets.QGridLayout(self.groupBox_3)
        self.gridLayout_3.setContentsMargins(11, 11, 11, 11)
        self.gridLayout_3.setHorizontalSpacing(6)
        self.gridLayout_3.setVerticalSpacing(10)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.label_5 = QtWidgets.QLabel(self.groupBox_3)
        self.label_5.setAlignment(QtCore.Qt.AlignCenter)
        self.label_5.setObjectName("label_5")
        self.gridLayout_3.addWidget(self.label_5, 0, 0, 1, 1)
        self.spinY_Min = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinY_Min.setMaximum(1000000.0)
        self.spinY_Min.setObjectName("spinY_Min")
        self.gridLayout_3.addWidget(self.spinY_Min, 0, 1, 1, 1)
        self.btnY_SetRange = QtWidgets.QPushButton(self.groupBox_3)
        self.btnY_SetRange.setObjectName("btnY_SetRange")
        self.gridLayout_3.addWidget(self.btnY_SetRange, 0, 2, 1, 1)
        self.label_6 = QtWidgets.QLabel(self.groupBox_3)
        self.label_6.setAlignment(QtCore.Qt.AlignCenter)
        self.label_6.setObjectName("label_6")
        self.gridLayout_3.addWidget(self.label_6, 1, 0, 1, 1)
        self.spinY_Max = QtWidgets.QDoubleSpinBox(self.groupBox_3)
        self.spinY_Max.setMaximum(1000000.0)
        self.spinY_Max.setProperty("value", 20.0)
        self.spinY_Max.setObjectName("spinY_Max")
        self.gridLayout_3.addWidget(self.spinY_Max, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(self.groupBox_3)
        self.label_3.setAlignment(QtCore.Qt.AlignCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout_3.addWidget(self.label_3, 2, 0, 1, 1)
        self.spinY_Ticks = QtWidgets.QSpinBox(self.groupBox_3)
        self.spinY_Ticks.setMinimum(3)
        self.spinY_Ticks.setMaximum(1000)
        self.spinY_Ticks.setProperty("value", 5)
        self.spinY_Ticks.setDisplayIntegerBase(10)
        self.spinY_Ticks.setObjectName("spinY_Ticks")
        self.gridLayout_3.addWidget(self.spinY_Ticks, 2, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_3)
        self.groupBox_4 = QtWidgets.QGroupBox(self.frameData)
        self.groupBox_4.setObjectName("groupBox_4")
        self.gridLayout = QtWidgets.QGridLayout(self.groupBox_4)
        self.gridLayout.setContentsMargins(11, 11, 11, 11)
        self.gridLayout.setHorizontalSpacing(6)
        self.gridLayout.setVerticalSpacing(10)
        self.gridLayout.setObjectName("gridLayout")
        self.label_4 = QtWidgets.QLabel(self.groupBox_4)
        self.label_4.setAlignment(QtCore.Qt.AlignCenter)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 0, 0, 1, 1)
        self.comboDateFormat = QtWidgets.QComboBox(self.groupBox_4)
        self.comboDateFormat.setEditable(True)
        self.comboDateFormat.setObjectName("comboDateFormat")
        self.comboDateFormat.addItem("")
        self.comboDateFormat.addItem("")
        self.comboDateFormat.addItem("")
        self.comboDateFormat.addItem("")
        self.gridLayout.addWidget(self.comboDateFormat, 1, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(self.groupBox_4)
        self.label_7.setAlignment(QtCore.Qt.AlignCenter)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1)
        self.btnX_Ticks = QtWidgets.QSpinBox(self.groupBox_4)
        self.btnX_Ticks.setMinimum(3)
        self.btnX_Ticks.setMaximum(1000)
        self.btnX_Ticks.setProperty("value", 10)
        self.btnX_Ticks.setDisplayIntegerBase(10)
        self.btnX_Ticks.setObjectName("btnX_Ticks")
        self.gridLayout.addWidget(self.btnX_Ticks, 0, 1, 1, 1)
        self.verticalLayout_5.addWidget(self.groupBox_4)
        spacerItem = QtWidgets.QSpacerItem(20, 40,
                                           QtWidgets.QSizePolicy.Minimum,
                                           QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_5.addItem(spacerItem)
        self.verticalLayout_2.addWidget(self.frameData)
        self.tabWidget.addTab(self.tab_Setup, "")
        self.frame_chart = QtWidgets.QFrame(self.splitter)
        self.frame_chart.setMinimumSize(QtCore.QSize(300, 0))
        self.frame_chart.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.frame_chart.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_chart.setObjectName("frame_chart")
        self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.frame_chart)
        self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_4.setSpacing(6)
        self.verticalLayout_4.setObjectName("verticalLayout_4")
        self.chartView = QmyChartView(self.frame_chart)
        self.chartView.setObjectName("chartView")
        self.verticalLayout_4.addWidget(self.chartView)
        self.verticalLayout_6.addWidget(self.splitter)
        MainWindow.setCentralWidget(self.centralWidget)
        self.menuBar = QtWidgets.QMenuBar(MainWindow)
        self.menuBar.setGeometry(QtCore.QRect(0, 0, 593, 23))
        self.menuBar.setObjectName("menuBar")
        MainWindow.setMenuBar(self.menuBar)
        self.mainToolBar = QtWidgets.QToolBar(MainWindow)
        self.mainToolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextBesideIcon)
        self.mainToolBar.setObjectName("mainToolBar")
        MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.mainToolBar)
        self.statusBar = QtWidgets.QStatusBar(MainWindow)
        self.statusBar.setObjectName("statusBar")
        MainWindow.setStatusBar(self.statusBar)
        self.actZoomReset = QtWidgets.QAction(MainWindow)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/images/images/414.bmp"),
                       QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomReset.setIcon(icon)
        self.actZoomReset.setObjectName("actZoomReset")
        self.actQuit = QtWidgets.QAction(MainWindow)
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/images/images/132.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actQuit.setIcon(icon1)
        self.actQuit.setObjectName("actQuit")
        self.actZoomIn = QtWidgets.QAction(MainWindow)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/images/images/418.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomIn.setIcon(icon2)
        self.actZoomIn.setObjectName("actZoomIn")
        self.actZoomOut = QtWidgets.QAction(MainWindow)
        icon3 = QtGui.QIcon()
        icon3.addPixmap(QtGui.QPixmap(":/images/images/416.bmp"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actZoomOut.setIcon(icon3)
        self.actZoomOut.setObjectName("actZoomOut")
        self.actOpen = QtWidgets.QAction(MainWindow)
        icon4 = QtGui.QIcon()
        icon4.addPixmap(QtGui.QPixmap(":/images/images/001.GIF"),
                        QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.actOpen.setIcon(icon4)
        self.actOpen.setObjectName("actOpen")
        self.mainToolBar.addAction(self.actOpen)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actZoomIn)
        self.mainToolBar.addAction(self.actZoomOut)
        self.mainToolBar.addAction(self.actZoomReset)
        self.mainToolBar.addSeparator()
        self.mainToolBar.addAction(self.actQuit)

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