Skip to main content

Convert PyQt UI file to Qt corresponding py File

Project description

README


[!note]

  • 这个工具用于转换 Qt 的 * .ui 文件为 *.py 文件
  • 对于没有使用 Vscode 插件的用户,还是一个不错的脚本
  • 如果没有指定 -p 参数,那么生成的文件会在当前目录下生成一个 ui_files 文件夹

安装方法


pip 用户

[!important] 请先去 release 下载 conver_ui-x.x.x.whl 文件

pip install conver_ui-x.x.x.whl

或者直接使用 pip 通过 PyPi 安装

pip install conver_ui

uv 用户

uv pip install conver_ui-x.x.x.whl

测试是否安装成功

测试命令是否可以使用了

# 查看版本
convert_ui -v
VERSION 'vx.x.x'

常用的一些功能

# 使用说明
convert_ui -h 

# 转换当前目录下所有的文件为py文件
convert_ui

# 批量转换指定目录下的文件为py文件
convert_ui -t ./demo1.ui ./demo2.ui

# 指定输出目录
convert_ui -t ./demo1.ui -p ./demo_py

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

convert_ui-0.3.7.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

convert_ui-0.3.7-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file convert_ui-0.3.7.tar.gz.

File metadata

  • Download URL: convert_ui-0.3.7.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for convert_ui-0.3.7.tar.gz
Algorithm Hash digest
SHA256 b227ffbaf9be23fb2aba30d038d1a95514d88ad7db77f3bee779fbc87939ed7c
MD5 ac3e579f1eb51ba8118e7aa370a1a482
BLAKE2b-256 e414aa5168bc50cb542f8f2ca4fbc120ded5cd5f1f7fdd72a429400a28cec612

See more details on using hashes here.

File details

Details for the file convert_ui-0.3.7-py3-none-any.whl.

File metadata

  • Download URL: convert_ui-0.3.7-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for convert_ui-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9172fa0c3f86cdd639e85d9d126fc8c62aed0563516952c2af2f052c0dce7a5f
MD5 ebd008d8ff32ff6857b955c1a0b589b3
BLAKE2b-256 1271160591247e53024cf509f6845b7f1ce1d7fb78c59a8fb8d4ff701934895a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page