PyQt5 is a Python library lets you build different types of graphical user interface (GUI) based on the Qt GUI framework written in C++.

Recently I got an email from a subscriber asking how do you automatically resize the buttons when a user change the window size.

In this tutorial I will show you how to use the QSizePolicy class to configure the button resizing setting.

Python Script