pyqt5 convert ui in py code example
Example 1: how to convert ui to py pyqt5
# 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
Example 2: how to convert pyqt5 to python
# To convert pyqt5 file(.ui) to python file(.py)
>> pyuic5 -x file.ui -o file.py