资源简介
PyQt5安装包,源代码,直接放在工程文件中,使用import导入,例如from PyQt5.QtWidgets import QApplication,QWidget
代码片段和文件信息
# Copyright (c) 2017 Riverbank Computing Limited
#
# This file is part of PyQt5.
#
# This file may be used under the terms of the GNU General Public License
# version 3.0 as published by the Free Software Foundation and appearing in
# the file LICENSE included in the packaging of this file. Please review the
# following information to ensure the GNU General Public License version 3.0
# requirements will be met: http://www.gnu.org/copyleft/gpl.html.
#
# If you do not wish to use this file under the terms of the GPL version 3.0
# then you may purchase a commercial license. For more information contact
# info@riverbankcomputing.com.
#
# This file is provided AS IS with NO WARRANTY OF ANY KIND INCLUDING THE
# WARRANTY OF DESIGN MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
import sys
from PyQt5.QtCore import (PYQT_VERSION_STR QDir QFile QFileInfo QIODevice
QTextStream)
from .pylupdate import *
def printUsage():
sys.stderr.write(
“Usage:\n“
“ pylupdate5 [options] project-file\n“
“ pylupdate5 [options] source-files -ts ts-files\n“
“\n“
“Options:\n“
“ -help Display this information and exit\n“
“ -version\n“
“ Display the version of pylupdate5 and exit\n“
“ -verbose\n“
“ Explain what is being done\n“
“ -noobsolete\n“
“ Drop all obsolete strings\n“
“ -tr-function name\n“
“ name() may be used instead of tr()\n“
“ -translate-function name\n“
“ name() may be used instead of translate()\n“);
def updateTsFiles(fetchedTor tsFileNames codecForTr noObsolete verbose):
dir = QDir()
for t in tsFileNames:
fn = dir.relativeFilePath(t)
tor = metaTranslator()
out = metaTranslator()
tor.load(t)
if codecForTr:
tor.setCodec(codecForTr)
merge(tor fetchedTor out noObsolete verbose fn)
if noObsolete:
out.stripObsoleteMessages()
out.stripEmptyContexts()
if not out.save(t):
sys.stderr.write(“pylupdate5 error: Cannot save ‘%s‘\n“ % fn)
def main():
# Initialise.
defaultContext = “@default“
fetchedTor = metaTranslator()
codecForTr = ‘‘
codecForSource = ‘‘
tsFileNames = []
uiFileNames = []
verbose = False
noObsolete = False
metSomething = False
numFiles = 0
standardSyntax = True
metTsFlag = False
tr_func = None
translate_func = None
# Parse the command line.
for arg in sys.argv[1:]:
if arg == “-ts“:
standardSyntax = False
argc = len(sys.argv)
i = 1
while i < argc:
arg = sys.argv[i]
i += 1
if arg == “-help“:
printUsage()
sys.exit(0)
if arg == “-version“:
sys.stderr.write(“pylupdate5 v%s\n“ % PYQT_VERSION_STR)
sys.exit(0)
if arg == “-noobsolete“:
noObsolete = True
continue
if arg ==
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-09-12 22:59 PyQt5\
文件 122368 2018-03-23 22:34 PyQt5\pylupdate.pyd
文件 7131 2017-11-23 23:44 PyQt5\pylupdate_main.py
文件 47104 2018-03-23 22:34 PyQt5\pyrcc.pyd
文件 5270 2017-11-23 23:44 PyQt5\pyrcc_main.py
文件 279552 2018-03-23 22:33 PyQt5\QAxContainer.pyd
文件 4672 2018-03-23 22:29 PyQt5\QAxContainer.pyi
文件 12288 2018-03-23 22:34 PyQt5\Qt.pyd
文件 320000 2018-03-23 22:34 PyQt5\QtBluetooth.pyd
文件 72842 2018-03-23 22:30 PyQt5\QtBluetooth.pyi
文件 2219520 2018-03-23 22:31 PyQt5\QtCore.pyd
文件 381659 2018-03-23 22:28 PyQt5\QtCore.pyi
文件 172544 2018-03-23 22:33 PyQt5\QtDBus.pyd
文件 23287 2018-03-23 22:29 PyQt5\QtDBus.pyi
文件 307712 2018-03-23 22:33 PyQt5\QtDesigner.pyd
文件 22809 2018-03-23 22:29 PyQt5\QtDesigner.pyi
文件 2347520 2018-03-23 22:32 PyQt5\QtGui.pyd
文件 390836 2018-03-23 22:28 PyQt5\QtGui.pyi
文件 133120 2018-03-23 22:32 PyQt5\QtHelp.pyd
文件 9449 2018-03-23 22:29 PyQt5\QtHelp.pyi
文件 416768 2018-03-23 22:34 PyQt5\QtLocation.pyd
文件 50939 2018-03-23 22:30 PyQt5\QtLocation.pyi
文件 531456 2018-03-23 22:32 PyQt5\QtMultimedia.pyd
文件 85388 2018-03-23 22:29 PyQt5\QtMultimedia.pyi
文件 126976 2018-03-23 22:32 PyQt5\QtMultimediaWidgets.pyd
文件 4671 2018-03-23 22:29 PyQt5\QtMultimediaWidgets.pyi
文件 652800 2018-03-23 22:32 PyQt5\QtNetwork.pyd
文件 96799 2018-03-23 22:29 PyQt5\QtNetwork.pyi
文件 125952 2018-03-23 22:32 PyQt5\QtOpenGL.pyd
文件 15983 2018-03-23 22:29 PyQt5\QtOpenGL.pyi
文件 165888 2018-03-23 22:34 PyQt5\QtPositioning.pyd
............此处省略127个文件信息
- 上一篇:基于深度学习的脑电信号研究
- 下一篇:WS2812库 arduino测试通过
相关资源
- 登陆界面设计
- PyQ5基本窗口控件详解
- pyqt5_tools-5.9.0.1.2-cp35-none-win_amd64.whl
- 用PyQT5多线程爬取轻小说工具
- PyQt5开发与实战源代码
- PyQt5All.rar
- PYQT5与Matplotlib_2019最新参考资料 含程
- pyqt5windows生成二维工具源码
- pyqt5PyQt5快速开发与实战
- pyqt5 2019学习手册 自编手册 可以当工
- pyqt5思维导图与笔记
- PyQt5-5.11.2-5.11.1-cp35.cp36.cp37.cp38-none-w
- PyQt5快速开发与实战PDF 带目录
- pyqt5_tools-5.11.3.1.4-cp37-none-win_amd64
- PyQt5-5.11.3-5.11.2-cp35.cp36.cp37.cp38-none-w
- PyQt5快速开发与实战电子书(清晰有目
- pyqt5pyqt5-tools
- 《PyQt5快速开发与实战》电子扫面带书
- PyQt5-5.14.1-5.14.0-cp35.cp36.cp37.cp38-none-w
- PyQt5快速开发与实战(PDF+配套源码)
- PyQt5快速开发与实战源码(完整版)
- Deep_learning_GUI.rar
- pyqt5图片和视频浏览器
- pyqt5串口通讯助手
- PyQt5:QtCharts 绘制折线图
- pyqt5:Qpainter绘制基础图形,鼠标拖动
- PyQt5高阶界面控件
- PyQt5快速开发与实践
- PyQt5系列教程(二)利用QtDesigner设计
- PyQt5:简单视频播放器
评论
共有 条评论