updata pyqtgraph Demo

This commit is contained in:
weike32 2019-05-21 18:13:13 +08:00
parent 4de63c3d41
commit c7aa482deb
3 changed files with 1 additions and 57 deletions

View file

@ -1,54 +0,0 @@
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file ''
#
# Created by: PyQt5 UI code generator 5.11.3
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class graph_Form(object):
def setupUi(self, Form):
Form.setObjectName("Form")
Form.resize(1024, 768)
self.verticalLayout = QtWidgets.QVBoxLayout(Form)
self.verticalLayout.setContentsMargins(20, 20, 20, 20)
self.verticalLayout.setSpacing(20)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtWidgets.QLabel(Form)
font = QtGui.QFont()
font.setPointSize(15)
self.label.setFont(font)
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.verticalLayout.addWidget(self.label)
self.tabWidget = QtWidgets.QTabWidget(Form)
self.tabWidget.setObjectName("tabWidget")
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
self.tabWidget.addTab(self.tab, "")
self.tab_2 = QtWidgets.QWidget()
self.tab_2.setObjectName("tab_2")
self.tabWidget.addTab(self.tab_2, "")
self.verticalLayout.addWidget(self.tabWidget)
self.pushButton_7 = QtWidgets.QPushButton(Form)
self.pushButton_7.setMinimumSize(QtCore.QSize(0, 80))
font = QtGui.QFont()
font.setPointSize(15)
self.pushButton_7.setFont(font)
self.pushButton_7.setObjectName("pushButton_7")
self.verticalLayout.addWidget(self.pushButton_7)
self.retranslateUi(Form)
self.tabWidget.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(Form)
def retranslateUi(self, Form):
_translate = QtCore.QCoreApplication.translate
Form.setWindowTitle(_translate("Form", "Form"))
self.label.setText(_translate("Form", "图形分析"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _translate("Form", "折线图"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _translate("Form", "Tab 2"))
self.pushButton_7.setText(_translate("Form", "分析"))

View file

@ -12,9 +12,7 @@ import sys
from PyQt5.QtWidgets import QDialog, QApplication, QWidget from PyQt5.QtWidgets import QDialog, QApplication, QWidget
from qtpy import QtWidgets from qtpy import QtWidgets
import pyqtgraph as pg import pyqtgraph as pg
from PyQtGraph.Data.graphTest import graph_Form
from PyQtGraph.Data.graphAnalysis import graph_Form
class CustomViewBox(pg.ViewBox): class CustomViewBox(pg.ViewBox):
def __init__(self, *args, **kwds): def __init__(self, *args, **kwds):