Python is a general-purpose programming language. No matter in which field you're working there are some libraries which you'll find useful. In this article, we'll see 8 awesome Python libraries that you'll find helpful in GUI(Graphical User Interface) development.
Kivy is an open-source Python library that can be used for developing cross-platform(Linux, Windows, OS X, Android, iOS, and Raspberry Pi) applications. Besides being truly cross-platform, it is GPU accelerated and provides awesome features like multi-touch support in applications.
It's API is quite easy to use. There are already several applications built on it, their source code are also available, which can be used as a reference while developing your own applications.
It is the Python interface to the Tk GUI toolkit for building robust, fast and simple GUI applications. It is available in standard Python libraries, so if you want to build something without external dependencies you can use it. But the downside of Tkinter is, it doesn't have modern and native OS look.
It is Python binding of the cross-platform GUI toolkit Qt. It is considered as the most stable GUI library in Python. It contains a rich set of modules that makes development faster. PyQt4 runs on Windows, Linux, Mac OS X, and various UNIX platforms. PyQt5 also runs on Android and iOS.
There are several popular applications, both commercial and open-source, built on PyQt.
- Calibre, an E-book management application
- Dropbox, a file hosting service
- Kodos, Python Regular Expression Debugger
- QGIS, a free software desktop Geographic Information Systems (GIS) application
- Spyder, a Python data science IDE
- Anki, a spaced repetition flashcard program
If you want to build a large, scalable, reliable application, PyQt is the library you're looking for.
It's a very extensive, mature, cross-platform GUI toolkit for the Python language. When it comes to creating a truly native user interface for Windows, Macs, and Linux, wxPython is among the best library to use.
The versatility of wxPython comes from its core library wxWidgets, which is under active development from 1992. There are several popular applications built on wxWidgets like - Code::Blocks, BitTorrent, FileZilla, etc.
Examples of applications built on wxPython can be found here.
It's a fantastic library that can be used to create a GUI application from the Python command-line program. Yes, you've read it right. If you've ever created any command-line project, now it's time to give them graphical interface.
Here's the example
It is primarily useful if you want to share your project for the people who aren't familiar or comfortable with terminal too.
You can use Flexx to create (cross platform) desktop applications, web applications, and export an app to a standalone HTML document. It also works in the Jupyter notebook.