From my research, its a bit complicated to install PyQt4 on the Mac Osx.
Thus, I thought that would be nice idea to share my experiences with you.
Installation PyQt4 on the Windows operation systems, it’s quite easy job.
Firstly, you need to download the pyqt4.exe file from riverbankcomputing site. After running the exe file, the program will be installing the following packages for you on your Python27/Scripts folder.
- Qt (with database support for MySQL, PostgreSQL, SQLite3 and ODBC)
- Qt Designer
- Qt Linguist
- Qt Assistant
When it comes to Mac OSx, you need to install SIP initially. The version is also important, for instance, PyQt4-V12 requires greater than SIP 4.18V.
SIP is a python extension module generator for C and C++ libraries. One of the features of Python that makes it so powerful is the ability to take existing libraries, written in C or C++ and make them available as Python extension modules.
This extension modules called binding for the library.
SIP is a tool that makes it very easy to create Python binding for C and C++
So, firstly you need to download SIP from riverbankcomputing site again.
Next, you can download the PyQt4 Mac Osx version from the following links;
Let’s start coding our first Mac Osx desktop app with PyQt4.
The output :
Further Links :
Hope, you enjoy reading this article. If there is anything I can help, you can always reach me at firstname.lastname@example.org .
Till next time 🙂