将pyQt UI转换为python [英] Convert pyQt UI to python

查看:154
本文介绍了将pyQt UI转换为python的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以将使用qtDesigner形成的ui转换为python版本以使用而无需额外的文件?

Is there a way to convert a ui formed with qtDesigner to a python version to use without having an extra file?

我正在为此界面使用Maya,并将该UI文件转换为可读的python版本以实现该功能真的很棒!

I'm using Maya for this UI, and converting this UI file to a readable python version to implement would be really great!

推荐答案

您可以在shell上使用pyuic4命令: pyuic4 input.ui -o output.py

You can use pyuic4 command on shell: pyuic4 input.ui -o output.py

这篇关于将pyQt UI转换为python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆