Installation preparation for developing desktop software using eric4 and pyqt4

Source: Internet
Author: User
Tags qt designer

Currently, the final version of python2.x is 2.7. The py3 series is still in development and lacks sufficient information and API support.
There are many GUI Libraries in Python, but there are mainly two types of libraries: wxpython and pyqt.

I checked and chose pyqt after the installation process. The reason is that wxpython lacks powerful ide support, and pyqt is a mature routine, and Eric supports and uses the QT library.

----------------------------------------------------------- 1 --------------------------------------------

By the way:

GUI development using wxpython,: http://www.wxpython.org/download.php
The corresponding version of PY27: Version 2.8 also has Unicode and ANSI versions. After version 2.9, only the Unicode version is available.
Wxpython2.9-win32-py27 32-bit Python 2.7
Wxpython2.8-win32-unicode-py27
Wxpython2.8-win32-ansi-py27

 

The desktop development tool BOA constructor is an integrated development environment for wxpthon development.
: Http://boa-constructor.sourceforge.net/
Installation requirements: wxpython 2.4.0.7 or later and Python 2.1 or later.
Decompress the package to the C: python25/lib/Site-packages/BOA directory, and double-click boa. py to open the software.

 

==================================================================== ==============

For versions earlier than pyqt, you need to install QT and sip first, but pyqt4 does not need to. You can directly download the kernel with the GPL permission.
: Http://www.riverbankcomputing.co.uk/software/pyqt/download
Note: After installation, it is automatically registered in the path of the system environment (you may need to restart it)
Download
PyQt-win-gpl-4.8.3.zip Windows source is the source file
PyQt-Py2.7-x86-gpl-4.8.3-1.exe windows 32 bit installer is a development kit that contains everything outside of Python
Includes:
Pyqt
Qt (with database support for MySQL, PostgreSQL, sqlite3 and ODBC)
Qt designer
Qt linguist
Qt Assistant
Pyuic4
Pylupdate4
Lrelease
Pyrcc4
Qscintilla

Test Case problems:
Importerror: DLL load failed: the specified module cannot be found.
(The pyqt cannot be found or the python path address is changed because the environment variable is registered after the software is installed and needs to be restarted to take effect)

----------------------------------------------------------- 2 -------------------------------------------
Eric4 is an integrated Python Development Environment developed using pyqt4 and qscintilla2.
Now we have launched eric5 Based on Python 3.
: Http://eric-ide.python-projects.org/eric-download.html
Download version 4.4.12
Updated on 2011-2-7
Requirement: pyqt4 is installed.
Download eric4-4.4.12.zip,eric4-i18n-zh_cn.gb2312-4.4.12.zip (Chinese Language Pack)
Decompress the directory. Double-click Install. py (). We recommend that you decompress the package in the python directory.
I was really depressed when I learned from the installation experience on the Internet. The reason was that I did not write the detailed information on the middleware that contributed the article, and I always blurted the most critical steps.

1. Unzip the directory is a eric4-4.4.12, and then extract the Chinese Language Pack, the two sides of the directory structure is the same, directly overwrite it.
2. Double-click Install. py () under the eric4-4.4.12, the installation process of the DOS interface appears, the installation is completed within 1 minute.
3. Note that the installation will be automatically copied to the C:/python27/lib/Site-packages directory to generate the eric4 and eric4plugins directories.
4. Go to the C:/python27/lib/Site-packages/eric4 directory and double-click eric4.pyw to open the software.
5. A prompt is displayed on the configuration page for the first time. You can configure the configuration in real time or reconfigure the configuration later.
6. Change the language in the configuration item interface to Chinese. After restart, the menu is in Chinese.

Optional Configuration:
7. set -- select parameter -- editor -- API, select "automatically compile API", select "Python" as the language, add eric4.api from the installed API, or manually add pyqt4.api and qscintilla. API, and then click compile API below to complete the process later.
8. Set -- select parameter -- editor -- Auto complete. Select "auto complete", "Case Sensitive", and "Replace text ".
9. Set -- select parameter -- editor -- Automatic completion -- qscintilla, and select "show single", "Use fill symbol", "Slave document and API File".

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.