Python notes 004--pycharm use Pyuic to convert the. UI to. py
QT Designer is a UI designer that is said to be powerful and uses it to make Python window programs that can save a lot of time, but for good use, you need to configure
Material: pycharm2017
PYQT5 One, configure Pyuic on the Pycharm
Open the Pycharm, create a new project, or open an old project and enter the main interface
File-> Settings
Find tools in the Setup interface-> External Tools
Click the green plus sign
(I've already added it)
Fill in the Edit Tool dialog box
Name Pyuic
Describes the File of. UI is convert to. py
File path for program selection Python.exe
Parameter fill
-M PyQt5.uic.pyuic $FileName $-O $FileNameWithoutExtension $.py
working directory:
Select the directory where the UI file is stored ...
Select the directory where the UI file is stored ...
Select the directory where the UI file is stored ...
or, write the project directory, change the address every time a new item is changed ...
if my item is HelloWorld I fill in the catalogue for F:\PyCharmProject\helloworld
then, the best of this project's. ui files exist here
ii.. The UI file is converted to a. py file
Save a good UI file in the project directory
Right-click on the UI file-> Select an external tool->pyuic
The lower part shows that the command is executed
The generated. py file can also be seen on the left