推荐学习书目
› 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 · 2264 views
    This topic created in 3343 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   ·   Privacy   ·   Solana   ·   820 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:35 · PVG 06:35 · LAX 15:35 · JFK 18:35
    ♥ Do have faith in what you're doing.