Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert pyQt UI to python

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

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

like image 229
Shannon Hochkins Avatar asked Aug 25 '13 13:08

Shannon Hochkins


2 Answers

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

like image 126
Katsu Avatar answered Sep 29 '22 14:09

Katsu


For pyqt5 you can use

pyuic5 xyz.ui > xyz.py  

or

pyuic5 xyz.ui -o xyz.py 
like image 35
Awinash jaiswal Avatar answered Sep 29 '22 16:09

Awinash jaiswal