open .py files in qt designer code example Example: generate py file from ui pyuic5 -x -o pyfilename.py design.ui