• 大小: 27.65MB
    文件类型: .zip
    金币: 2
    下载: 1 次
    发布日期: 2023-06-27
  • 语言: Python
  • 标签: python  源代码  

资源简介

这个是用python编写的串口调试助手,内含可执行程序和源代码,有详细注释,还有运行代码所必须的dll库文件,保证好用,希望对大家有帮助

资源截图

代码片段和文件信息

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

# Form implementation generated from reading ui file ‘mainwindow.ui‘
#
# Created by: PyQt5 UI code generator 5.8.2
#
# 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(447 429)
        self.centralWidget = QtWidgets.QWidget(MainWindow)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.centralWidget.sizePolicy().hasHeightForWidth())
        self.centralWidget.setSizePolicy(sizePolicy)
        self.centralWidget.setAutoFillBackground(False)
        self.centralWidget.setobjectName(“centralWidget“)
        self.gridLayout = QtWidgets.QGridLayout(self.centralWidget)
        self.gridLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.gridLayout.setContentsMargins(9 9 9 9)
        self.gridLayout.setHorizontalSpacing(10)
        self.gridLayout.setVerticalSpacing(0)
        self.gridLayout.setobjectName(“gridLayout“)
        self.textEdit = QtWidgets.QTextEdit(self.centralWidget)
        self.textEdit.setMinimumSize(QtCore.QSize(20 40))
        self.textEdit.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOn)
        self.textEdit.setHorizontalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff)
        self.textEdit.setobjectName(“textEdit“)
        #设置背景图片,固定,上下左右居中
        self.textEdit.setstyleSheet(“background-image:url(:/water.png);\n“
                                    “background-attachment:fixed;\n“
                                    “background-repeat:none;\n“
                                    “background-position:center“)
        self.gridLayout.addWidget(self.textEdit 0 0 1 1)
        self.line = QtWidgets.Qframe(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.line.sizePolicy().hasHeightForWidth())
        self.line.setSizePolicy(sizePolicy)
        self.line.setframeShape(QtWidgets.Qframe.HLine)
        self.line.setframeShadow(QtWidgets.Qframe.Sunken)
        self.line.setobjectName(“line“)
        self.gridLayout.addWidget(self.line 1 0 1 1)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setSizeConstraint(QtWidgets.QLayout.SetDefaultConstraint)
        self.horizontalLayout.setContentsMargins(2 8 2 0)
        self.horizontalLayout.setSpacing(6)
        self.horizontalLayout.setobjectName(“horizontalLayout“)
        self.label = QtWidgets.QLabel(self.centralWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWi

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-06-11 16:48  pycom发布\
     文件       19832  2018-04-18 11:46  pycom发布\mainwindow.py
     文件    15488186  2017-11-18 10:01  pycom发布\pycom.exe
     文件       13839  2017-11-17 23:32  pycom发布\pycom.py
     文件      360159  2018-04-18 11:46  pycom发布\pyico.py
     文件    13767776  2017-04-13 22:59  pycom发布\vc_redist.x862015.exe
     文件         289  2017-11-19 21:10  pycom发布\使用说明.txt

评论

共有 条评论