Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to convert .py to .ui?



  • Hello, I want to ask you for help.
    mac + python3.7 + qt5 + pycharm

    I know use pycharm set tool:
    0_1551629285822_6661adea-e723-4bca-a827-d6a5d3de96f2-image.png
    can covert .ui to .py by QtDesinger create a .ui.

    But how to covert .py to .ui, so that QtDeinger can reload the new .ui?
    I know someone use windows can use pyrcc5.exe:
    0_1551629579004_9e241c7c-cbd9-4709-af21-4b39359b1bf6-image.png

    But I can't find the pyrcc in mac, and there're not "Script" in "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7"

    I just find this but how to use it to convert .py to .ui?
    0_1551629768446_bbf0c036-83d5-4abe-85e2-b7e78b043678-image.png

    Thank you very much.



  • I'm not aware of any tool to do that. UI is an XML description of the interface. PY is the processed output of that description. I'm not sure anyone has ever identified enough need to go the other direction.


Log in to reply