Pyqt5+python3+pycharm Development Environment Configuration

Source: Internet
Author: User
Tags qt designer

1. Download PYQT

Official website: HTTP://WWW.RIVERBANKCOMPUTING.COM/SOFTWARE/PYQT/DOWNLOAD5

My operating system is 64-bit, the installation is Python3.4.3, so I choose to download:pyqt5-5.4.1-gpl-py3.4-qt5.4.1-x64. exe

Click Install.

2. Configure Pycharm

1) Open Pycharm, perform shortcut key Ctrl+alt+s Open the Setup interface, input tool, open external tools, configure Qtdesigner.

Click the plus sign in the upper left corner to configure the following:

In QT designer settings, program selects the designer.exe path in the PYQT installation directory

Work directory uses variables $ProjectFileDir $ (click the Insert macro button later to double-click on the screen without typing)



2). Set "Pyuic" -this is primarily used to convert the QT interface into a py code

In the Pyuic settings, the other is the same, program writes to the Python address, parameters writes

-M PyQt5.uic.pyuic $FileName $-O $FileNameWithoutExtension $.py

Change the python path above to your own!

Work directory uses variables $ProjectFileDir $




Use Qtdesigner to generate the UI file first, and then use Pyuic to convert the UI file to the corresponding Python file




Pyqt5+python3+pycharm Development Environment Configuration

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.