6 Awesome Python Libraries for GUI Development

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

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.

Tkinter

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.

Examples of tkinter-based software include Thonny. You can visit open-source projects on Tkinter here

PyQt

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.

Phoenix(wxPython)

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.

Gooey

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

Source - Gooey

 

It is primarily useful if you want to share your project for the people who aren't familiar or comfortable with terminal too.

Flexx

Flexx is a pure Python toolkit for creating graphical user interfaces (GUI's), that uses web technology for its rendering. Apps are written purely in Python; The PScript transpiler generates the necessary JavaScript on the fly.

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.

The docs are on Readthedocs. the code is on Github.

0 Comments

Join discussion:

Login