Convert pyQt UI to python

后端 未结 10 1692
谎友^
谎友^ 2020-11-30 20:51

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 fi

10条回答
  •  执笔经年
    2020-11-30 21:24

    If you are using windows, the PyQt4 folder is not in the path by default, you have to go to it before trying to run it:

    c:\Python27\Lib\site-packages\PyQt4\something> pyuic4.exe full/path/to/input.ui -o full/path/to/output.py
    

    or call it using its full path

    full/path/to/my/files> c:\Python27\Lib\site-packages\PyQt4\something\pyuic4.exe input.ui -o output.py
    

提交回复
热议问题