Convert pyQt UI to python

后端 未结 10 1722
谎友^
谎友^ 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条回答
  •  猫巷女王i
    2020-11-30 21:10

    I'm not sure if PyQt does have a script like this, but after you install PySide there is a script in pythons script directory "uic.py". You can use this script to convert a .ui file to a .py file:

    python uic.py input.ui -o output.py -x
    

提交回复
热议问题