资源简介

Python3.x+Pyqt5实现绘图界面(MainWindow类型窗体;matplotlib 绘图控件嵌入PyQt5 graphicview控件中)和业务逻辑分离案例04_自己写的,有UI界面源代码

资源截图

代码片段和文件信息

# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file ‘jiemian.ui‘
#
# Created by: PyQt5 UI code generator 5.6
#
# WARNING! All changes made in this file will be lost!

from PyQt5 import QtCore QtGui QtWidgets

class Ui_MainWindow(object):
    def setupUi(self MainWindow):
        MainWindow.setobjectName(“MainWindow“)
        MainWindow.resize(800 600)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setobjectName(“centralwidget“)
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.centralwidget)
        self.horizontalLayout.setobjectName(“horizontalLayout“)
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setobjectName(“verticalLayout“)
        self.graphicsView = QtWidgets.QGraphicsView(self.centralwidget)
        self.graphicsView.setobjectName(“graphicsView“)
        self.verticalLayout.addWidget(self.graphicsView)
        self.pushButton = QtWidgets.QPushButton(self.centralwidget)
        self.pushButton.setobjectName(“pushButton“)
        self.verticalLayout.addWidget(self.pushButton)
        self.horizontalLayout.addLayout(self.verticalLayout)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0 0 800 26))
        self.menubar.setobjectName(“menubar“)
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setobjectName(“statusbar“)
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        QtCore.Qmetaobject.connectSlotsByName(MainWindow)

    def retranslateUi(self MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowtitle(_translate(“MainWindow“ “MainWindow“))
        self.pushButton.setText(_translate(“MainWindow“ “点击绘图“))


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        228  2018-06-25 05:09  wangyong_06\.idea\inspectionProfiles\profiles_settings.xml

     文件        213  2018-06-25 05:09  wangyong_06\.idea\misc.xml

     文件        274  2018-06-25 05:09  wangyong_06\.idea\modules.xml

     文件        459  2018-06-25 05:09  wangyong_06\.idea\wangyong_06.iml

     文件      27470  2018-06-27 03:20  wangyong_06\.idea\workspace.xml

     文件       1980  2018-06-25 05:12  wangyong_06\jiemian.py

     文件       1188  2018-06-25 05:12  wangyong_06\jiemian.ui

     文件        851  2018-06-25 06:01  wangyong_06\mainfile.py

     文件       1888  2018-06-26 22:36  wangyong_06\yewuwenjian.py

     文件       1726  2018-06-25 05:51  wangyong_06\__pycache__\jiemian.cpython-35.pyc

     文件       1750  2018-06-26 22:36  wangyong_06\__pycache__\yewuwenjian.cpython-35.pyc

     目录          0  2018-06-25 05:09  wangyong_06\.idea\inspectionProfiles

     目录          0  2018-06-27 03:20  wangyong_06\.idea

     目录          0  2018-06-26 22:36  wangyong_06\__pycache__

     目录          0  2018-06-26 22:36  wangyong_06

----------- ---------  ---------- -----  ----

                38027                    15


评论

共有 条评论