Introduction to PyQt5
We are going to see about the basic of PyQt5:
PyQt is one of the popular and powerful framework that written in python to develop the desktop applications.
QT-
QT is a cross-platform applications framework that was created for use with C++. Available in both commercial and open-source license. It is widely used by the open-source project such as Plasma, Oracle Virtual Box. Commercial software such as Adobe Photoshope elements, Autodesk MAYA and even embedded software and products from the company such as LG, Panasonic,etc. QT is currently owned and maintain by the company QT company. QT is officially pronounced "cute" though many people says QT.
PyQT-
PyQT is a python library that allows the QT framework to be used in python code. It was developed by Riverbank Computing license can be purchased for those wanting developed the proprietary applications. PyQT currently supports on Windows, Linux, macOS, UNIX, Android and OS.
There are essentially 3 main modules that there:
- QtWidgets which defines the Graphical User Interface widgets, Layouts and other high-level components.
- Whereas QtGui which contains Gui specific data wrapper classes and utilities.
- QtCore contains the low-level data wrapper classes, utility functions and non-GuiCore functionality.
For ceating GUI in python, we have multiple choices like tkinter, WXPython, Kivy and PyQt5, a cross platform very famous library for creating Graphical User Interface as well as cross-platform applications.
Installation:
- The first step is to install QT5.
- The next steps are to install PyQt5 and set it up to use Python 3.4.
I recommend installing PyQt5 like so:
For Windows:
pip install PyQt5
For Linux & MacOS:
pip3 install PyQt5
Subscribe to my newsletter
Read articles from Ashutosh Kurwade directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by