UI Created in Qt Designer
Save your UI and navigate to where your UI is saved in your folder structure. You need to navigate to your folder structure because the command line is going to take that location when you generate the code.
Navigating to UI in Folder Structure
In your folder directory, in type cmd and the command line window should pop up. When you type cmd in any directory it will create your UI code in that location.
Once you are in the command line, type in pyuic5 -x nameOfUI.ui -o nameOf Code.py. This code tells the command line to extract the code from the ui file and open it as a python code file.
Code in Command Line
Hit enter and you should see the command line update waiting for the next command.
Updated Command Line
From here you can look back in your file directory and see that your code has generated!
Example Code in File Directory
When you open the code it should look something like this. For the codes I generate I always run the code and make sure everything is working before I start working. I then go in and split the code so that it is organized and easy to follow with comments on what the code is.
Example Code Generated with no Clean Up