O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Python GUI Programming Recipes using PyQt5

Video Description

Learn to desing a UI with help of PyQT5

About This Video

  • Develop beautiful and powerful GUIs using Python 3 and PyQt5
  • Design GUIs in a visual manner, using Qt Designer
  • Decouple UI and Python business logic code, using Best Practices

In Detail

Python and one of its QT bindings, PyQT, has changed the face of GUI development. It allows us to build beautiful and powerful GUIs that grab the attention of Python programmers. QT5 has several advantages over other GUI frameworks such as tkinter and wxPython.

In this video, we will successfully install PyQt5 and the toolset that contains the QT Designer tool. The QT Designer enables us to develop our GUI in a visual manner, using drag and drop to add and position widgets, and we will use it extensively. We will then learn how to convert QT Designer-generated code into pure Python code.

After having successfully installed PyQt5, the QT Designer, and all other required QT tools, we will start out simple, building a Python GUI using only a few lines of PyQT5 code. Then, we will build a more complex GUI using QT Designer. Along the way, we will explore many QT widgets and learn how to efficiently lay out our GUI design. We will enhance the look-and-feel of the GUI using CSS styling. We will also connect our GUI to a SQL database, which we will create. We decouple the business logic code from the UI code, using best practices. At the end of this video tutorial, viewers will be able to develop complex GUIs using PyQt5.