推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
a251922581
V2EX  ›  Python

Qt Designer 做的 UI 转换的 py 脚本能直接 pylupdate5 转换成 ts 文件供 Qt Linguist 翻译使用,直接 Python 脚本转换后是空的

  •  
  •   a251922581 · Aug 12, 2017 · 2228 views
    This topic created in 3283 days ago, the information mentioned may be changed or developed.
    Qt Designer 做好 UI 保存成 abc.ui
    用 pyuic5-3.4 abc.ui -o abc.py 转换到 python3 脚本格式
    用 pylupdate5-3.4 abc.py -o abc.ts 转换到 Qt Linguist 能直接用来翻译的 ts 文件
    如果是写的 Python3 脚本(PyQt 业务程序),用 pylupdate5-3.4 的话转换出的 ts 文件( XML 格式)是空的。。
    是命令行参数少了吗..
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   877 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 22:31 · PVG 06:31 · LAX 15:31 · JFK 18:31
    ♥ Do have faith in what you're doing.