I have created several widgets and a mainwindow in qt-designer and changed them to python files with pyuic5 -o filename.py filename.ui in the terminal in VSCode.
pyuic5 -o filename.py filename.ui