PySide2: How to fix the position of your widgets

Motivation In this post, I will share my experience in designing my GUI, which is how to fix the position of widgets. After learning the layout mechanism in PySide2 (link), I want to build a GUI that is similar to HTerm – a window app that I think has the best design consideration. Although HTerm […]

Read more
PySide2: Dialogue

A most effective way of conveying messages to users is the use of dialogue, like a pop-up window. In this post, we will go through several ways of displaying messages. Information Dialogue Question Dialogue File and Folder Dialogue This function opens a file and shows the image.

Read more
PySide2: Signals and Slots

Up until now, we have only deal with the aesthetic aspec of the GUI. Now, we will bind logics to our widgets. Mainly, we will populate the createConnects() function. Upon button click, the updateText() function will be called, and the button text will be rewritten as “Updated!”. We can add a decorater @Slot to the […]

Read more
PySide2: Layouts

Introduction The layout is a most important part in a GUI design. It encompases the look and design of the overall GUI. Layout defines a rule on the placement of widgets. In this post, we will look at the available layouts at our disposal. Free Layout Horizontal and Vertical Layout Grid Layout Stacked Layout Tab […]

Read more
PySide2: Standard Code Format

When we are building complex GUI applications, our codes most of the time get out of hand, and we will be overwhelmed by codes without any proper structure. In this post, I will share a code formatting structure for writing PySide2 applications. The idea is to keep the assets within the code clearly separated. Let […]

Read more
PySide2: The Menu Bar

Using the standard coding structure introduced in the previous tutorial, we will focus createMenu() in this post. Creating Menubar and Menu Items To create the menu bar with a list of menus underneath, we need to create a set of menu headers and menu items. Then we assign each of the menu items to the […]

Read more
PySide2: Your First Running Application

After a successful installation of the¬†PySide2 ecosystem. We will start creating our first PySide2 application, a GUI with the main window, and we will go through the details one after another. In this post, we will create a simple application with 3 widgets. Save this code in a file called myfirstapp.py and run the following […]

Read more
PySide2: Installation

Introduction To get started with developing GUI applications with PySide2, you can follow the comprehensive guides at the Qt official site. There are also platform specific guides: Windows, macOS, and Linux. (PySide2: Installation) macOS Windows Ubuntu (Linux) Getting Started on macOS Versions: Python 3.7.7 PySide2 5.14.1 Firstly, it’s always good to start your python coding […]

Read more