Planet Python RSS
213 subscribers
17K links
Unofficial Planet Python RSS feed from planetpython.org. Maintained by @cfinnberg
Download Telegram
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
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,