pyuic5 convert to py file code example
Example 1: generate py file from ui
pyuic5 -x -o pyfilename.py design.ui
Example 2: convert ui to py
python -m PyQt5.uic.pyuic youruifile -o yourpyfile -x
pyuic5 -x -o pyfilename.py design.ui
python -m PyQt5.uic.pyuic youruifile -o yourpyfile -x