Python notes 004--pycharm Configure Pyuic and use Pyuic to convert. UI to. Py__python

Source: Internet
Author: User
Tags qt designer
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.