How to enable and disable a QListWidget Item in PyQt5

In this PyQt5 tutorial, we are going to learn how to enable and disable a QListWidget item. Buy Me a Coffee? Your support is much appreciated! PayPal Me: https://www.paypal.me/jiejenn/5 Venmo: @Jie-Jenn Source Code: import sys from PyQt5.QtWidgets import QApplication,...

How to implement auto closing bracket feature in PyQt5

Auto-closing or self-closing, are some of the terms to describe when you insert a character (starting tag) that has a matched pair such as (, [, {, “, the feature will automatically insert the closing tag for you. In this# PyQt5 tutorial, we are going to learn...

Insert an image in a text editor QTextEdit in PyQt5

In this PyQt5 tutorial, we are going to learn how to insert an image in a text editor (QTextEdit widget). Buy Me a Coffee? Your support is much appreciated! PayPal Me: https://www.paypal.me/jiejenn/5 Venmo: @Jie-Jenn Source Code: import sys from PyQt5.QtWidgets import...

QListWidget Basics

In this PyQt5 tutorial, we are going to learn the basics of how to use the QListWidget in Python. A QListWidget (or QList Widget) is a powerful widget to provide a list view to allow a user to easily select an item from a list. Buy Me a Coffee? Your support is much...

Implement Button (widget) Drag And Move Feature

In This PyQt5 tutorial, I will be walking you through the steps to implement the feature where you can drag a button (or an object in general) with your mouse to a different location with your mouse. Buy Me a Coffee? Your support is much appreciated! PayPal Me:...