Book Image

Python GUI Programming Recipes using PyQt5 [Video]

By : Burkhard Meier
5 (1)
Book Image

Python GUI Programming Recipes using PyQt5 [Video]

5 (1)
By: Burkhard Meier

Overview of this book

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.
Table of Contents (5 chapters)
Chapter 2
Designing Python GUIs with Qt Designer
Content Locked
Section 5
Converting the Qt Designer UI Code to Python Code
This video aims to explain the conversion of UI designer code into Python code. - Look into the UI designer code - Find the UI code in the designer - Convert the UI code into Python code