Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
Learn PyQt: Add scrollable regions with QScrollArea — Run out of space in your GUI? Add a scrollable region to your application

Link: https://www.learnpyqt.com/tutorials/qscrollarea/

When you start building apps that display long documents, large amounts of data or large numbers of widgets, it can be difficult to arrange things within a fixed-size window. Resizing the window beyon
Learn PyQt: LearnPyQt — One year in, and much more to come. — A quick retrospective on 2019

Link: https://www.learnpyqt.com/tutorials/learn-pyqt-one-year-in-and-more-to-come/

It's been a very good year.
Back in May I was looking through my collection of PyQt tutorials and videos and trying to decide what to do with them. They were pretty popular, but being hosted on multip
Learn PyQt: Q&A: How do I display an Image in PyQt5/PySide2? — Using QLabel to easily add images to your applications

Link: https://www.learnpyqt.com/tutorials/adding-images-to-pyqt5-applications/

Adding images to your application is a common requirement, whether you're building an image/photo viewer, or just want to add some decoration to your GUI. Unfortunately, because of how this is done in
Learn PyQt: MooseAche — Simple web-browser in Python, using PyQt

Link: https://www.learnpyqt.com/tutorials/mooseache/

MooseAche is the latest revolution in web browsing! Go back and forward! Save files! Get help! (you'll need it). Any similarity to other browsers is entirely coincidental.
QtWebEngineWidgets is not i
Learn PyQt: Implementing QPainter flood fill in PyQt5/PySide

Link: https://www.learnpyqt.com/tutorials/implementing-qpainter-flood-fill-pyqt5pyside/

Building Piecasso (a PyQt5 Paint clone) I was disappointed to discover that while QPainter comes with a huge number of paint methods, ranging from pixels and lines to fully-filled polygons, it doesn't
Learn PyQt: Transmitting extra data with Qt Signals — Modifying widget signals to pass contextual information to slots

Link: https://www.learnpyqt.com/tutorials/transmitting-extra-data-qt-signals/

Signals are a neat feature of Qt that allow you to pass messages between different components in your applications.
Signals are connected to slots which are functions (or methods) which will be run ev
Learn PyQt: Create GUI Applications with Python & Qt5, 4th Edition now available (PyQt5 & PySide2) — The hands-on guide to make apps with Python

Link: https://www.learnpyqt.com/tutorials/pyqt5-pyside2-book-4th-edition/

Hello! This morning I released a new update to my PyQt5 book Create GUI Applications, with Python & Qt5. This is an enormous update, expanding it from 258 to 665 pages and adding 211 complete code exa
Learn PyQt: Creating additional windows — Opening new windows for your application

Link: https://www.learnpyqt.com/tutorials/creating-multiple-windows/

In an earlier tutorial we've already covered how to open dialog windows. These are special windows which (by default) grab the focus of the user, and run their own event loop, effectively blocking the
Learn PyQt: QPainter and Bitmap Graphics — Introduction to the core features of QPainter

Link: https://www.learnpyqt.com/tutorials/bitmap-graphics/

The first step towards creating custom widgets in PyQt5 is understanding bitmap (pixel-based) graphic operations. All standard widgets draw themselves as bitmaps on a rectangular "canvas" that forms t
Learn PyQt: Creating custom GUI widgets in PyQt5 — Build a completely functional custom widget from scratch using QPainter

Link: https://www.learnpyqt.com/tutorials/creating-your-own-custom-widgets/

In the previous tutorial we introduced QPainter and looked at some basic bitmap drawing operations which you can used to draw dots, lines, rectangles and circles on a QPainter surface such as a QPixma
Learn PyQt: EqualizerBar — Visualize audio frequency changes

Link: https://www.learnpyqt.com/tutorials/equalizerbar/

This custom PyQt5/PySide2-compatible widget provides a frequency visualizer output for audio applications. It is completely configurable from the number of bars, the number of segments and colours to
Learn PyQt: Gradient — Gradient designer with add, drag and edit stops

Link: https://www.learnpyqt.com/tutorials/gradient/

This custom PyQt5/PySide2-compatible widget provides a gradient designer providing a handy interface to design linear gradients in your applications. A new gradient can be created simply by creating a
Learn PyQt: Embedding custom widgets from Qt Designer — Learn how to use custom widgets in your PyQt5 applications when designing with Qt Designer

Link: https://www.learnpyqt.com/tutorials/embed-pyqtgraph-custom-widgets-qt-app/

Qt Designer is a great tool for designing PyQt5 GUIs, allowing you to use the entire range of Qt5 widgets and layouts to construct your apps. As your applications get more complex however you may find
Learn PyQt: Plotting with PyQtGraph — Create custom plots in PyQt with PyQtGraph

Link: https://www.learnpyqt.com/tutorials/plotting-pyqtgraph/

One of the major strengths of Python is in exploratory data science and visualization, using tools such as Pandas, numpy, sklearn for data analysis and matplotlib plotting. Buiding GUI applications wi
Learn PyQt: Laying Out Your GUIs With Qt Designer — Use Qt Designer to effortlessly build your application UI

Link: https://www.learnpyqt.com/tutorials/qt-designer-gui-layout/

When laying out your Qt GUIs it can be quite a tricky task to place every widget in the right position on your forms. Fortunately, Qt offers a set of layout managers that simplify the process of widge
Learn PyQt: Plotting with Matplotlib — Create PyQt5 plots with the popular Python plotting library

Link: https://www.learnpyqt.com/tutorials/plotting-matplotlib/

In a previous tutorial we covered plotting in PyQt5 using PyQtGraph. PyQtGraph uses the Qt vector-based QGraphicsScene to draw plots and provides a great interface for interactive and high performanc
Learn PyQt: Creating searchable widget dashboards — Make dashboard UIs easier to use with widget search & text prediction

Link: https://www.learnpyqt.com/tutorials/widget-search-bar/

Dashboard applications are a popular way to display live data and user controls, whether interacting with APIs or controlling locally attached devices. However, as more controls are added, dashboards
Learn PyQt: Displaying tabular data in Qt5 ModelViews — Create customized table views with conditional formatting, numpy and pandas data sources.

Link: https://www.learnpyqt.com/tutorials/qtableview-modelviews-numpy-pandas/

In the previous chapter we covered an introduction to the Model View architecture. However, we only touched on one of the model views — QListView. There are two other Model Views available in Qt5 — QT
Learn PyQt: Packaging PyQt5 & PySide2 applications for Windows, with PyInstaller — Turn your Qt5 application into a distributable installer for Windows

Link: https://www.learnpyqt.com/tutorials/packaging-pyqt5-pyside2-applications-windows-pyinstaller/

There is not much fun in creating your own desktop applications if you can't share them with other people — whether than means publishing it commercially, sharing it online or just giving it to someon
Learn PyQt: PasswordEdit — Password editing field, with Show/Hide toggle

Link: https://www.learnpyqt.com/tutorials/passwordedit/

When building applications which require a password (or some other secret) from a user you should use fields that hide the input. This prevents shoulder surfing passers by from being able to read off