# To convert .ui file to .py using pyqt5 module
>> pyuic5 -x main.ui -o main.py # pyQt5 version
>> pyuic4 -x main.ui -o main.py # pyQt4 version
pyuic5 -x yourfile.ui -o yourfile.py
python -m PyQt5.uic.pyuic -x [FILENAME].ui -o [FILENAME].py
pyside6-uic UIFILENAME.ui > PYHTON_FILENAME.py