# 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