Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
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
Learn PyQt: Creating Dialogs With Qt Designer — Using the drag and drop editor to build PyQt5 dialogs

Link: https://www.learnpyqt.com/tutorials/creating-dialogs-qt-designer/

Most PyQt GUI applications consist of a main window and several dialogs. Dialogs are small-sized windows that allow you to communicate with your users, either by showing messages on the screen or by t
Two Bit Arcade: Heart rate (HR) sensors — Photoplethysmography, because that's a real word

Link: https://www.chipperbits.com/article/heartrate-sensor-modules/

Pulse sensors are a common feature of fitness monitors, used to track your activity and cardiac fitness over time. These external monitors use the reflection and absorption of bright green/infra-red l
Two Bit Arcade: Building a MicroPython heart rate monitor — Finding the beat in HR sensor data

Link: https://www.chipperbits.com/article/wemos-heart-rate-sensor-display-micropython/

Pulse sensors have become popular due to their use in health-monitors like the Fitbit. The sensors used are cheap, simple and pretty reliable at getting a reasonable indication of heart rate in daily
Two Bit Arcade: Wemos D1 pin numbers & functions — Pin mapping and I2C/SPI from MicroPython

Link: https://www.chipperbits.com/article/wemos-d1-pins-micropython/

Below is a quick reference guide to Wemos D1 pin mapping for GPIO, I2C and SPI when working from MicroPython.
Pin mapping
The visible pin numbers written on the Wemos D1 does not relate to the interna
Two Bit Arcade: Mozarella Ashbadger — A tabbed web-browser in Python, using PyQt

Link: https://www.chipperbits.com/article/web-browser-tabbed-pyqt5/

Mozarella Ashbadger is the latest revolution in web browsing! Go back
and forward! Print! Save files! Get help! (you'll need it). Any similarity to other browsers is entirely coincidental.

This is an
Two Bit Arcade: Lucky Cat Spinning-arm Display — Python-powered Maneki-neko persistence of vision scroller

Link: https://www.chipperbits.com/article/lucky-spinning-arm-message-cat/

This build started as something simple: a lucky cat which would
turn on and off automatically in response to some event. Since lucky cats are
associated with good fortune the idea was to make one do
Two Bit Arcade: Driving I2C OLED displays with MicroPython — I2C monochrome displays with SSD1306

Link: https://www.chipperbits.com/article/oled-displays-i2c-micropython/

These mini monochrome OLED screens make great displays for projects — perfect for data readout, simple UIs or monochrome games.



Requirements





Wemos D1 v2.2+ or good imitations.
amazon


0.91in
Two Bit Arcade: Displaying images on OLED screens — Using 1-bpp images in MicroPython

Link: https://www.chipperbits.com/article/displaying-images-oled-displays/

We've previously covered the basics of driving OLED I2C displays from MicroPython, including simple graphics commands and text. Here we look at displaying monochrome 1 bit-per-pixel images and animati
Two Bit Arcade: 3D wireframe cube with MicroPython — Basic 3D model rotation and projection

Link: https://www.chipperbits.com/article/3d-rotating-cube-micropython-oled/

An ESP2866 is never going to compete with an actual graphics card. But it has more than enough oomph to explore the fundamentals of 3D graphics. In this short tutorial we'll go through the basics of c
Two Bit Arcade: 3-axis Accelerometer-Gyro — Measuring acceleration and orientation with an MPU6050

Link: https://www.chipperbits.com/article/3-axis-gyro-micropython/

Measuring acceleration and rotation has a lot of useful applications, from drone or rocket stablisation to making physically interactive handheld games.
An accelerometer measures proper acceleration,
Two Bit Arcade: Gyroscopic 3D wireframe cube — Using a 3-axis gyro for live 3D perspective

Link: https://www.chipperbits.com/article/gyroscopic-wireframe-cube/

This little project combines the previous accelerometer-gyroscope code with the 3D rotating OLED cube to produce a 3D cube which responds to gyro input, making it possible to "peek around" the cube wi
Two Bit Arcade: Etch-A-Snap — The Raspberry Pi powered Etch-A-Sketch camera

Link: https://www.chipperbits.com/article/etch-a-snap/

Etch-A-Snap is (probably) the worlds first Etch-A-Sketch Camera. Powered by a Raspberry Pi Zero (or Zero W) it snaps photos just like any other camera, but outputs them by drawing to an Pocket Etch-A-
Two Bit Arcade: Image Processing — Preparing the image to plot

Link: https://www.chipperbits.com/article/etch-a-snap--processing/

Etch-A-Sketch is a very simple 2D plotter which is limited to drawing a single unbroken line, of a single thickness and colour which is dark-ish on a silver-ish screen. To be able to plot a photo onto