1

How do I convert my .ui files generated by Qt Creator to .py files?

I used to convert the .ui files to .py files using a .bat file on Windows:

@echo off
for %%f in (*.ui) do (
    echo %%f    
    C:\Python34\Lib\site-packages\PyQt5\pyuic5.bat -x %%f -o %%~nf.py
)
pause

I now no longer have access to a PC for the conversion (plus I'm tired of switching computers just to convert the file), so I need to be able to just convert the .ui files to .py in mac⁠OS.

0 Answers0