CircuitPython displayio widget to create a rounded rectangle frame with text label at the top center.
Project description
Introduction
CircuitPython displayio widget to create a rounded rectangle frame with text label at the top center.
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install circuitpython-display-frame
To install system-wide (this may be required in some cases):
sudo pip3 install circuitpython-display-frame
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .env
source .env/bin/activate
pip3 install circuitpython-display-frame
Usage Example
import board
import displayio
from circuitpython_display_frame import Frame
display = board.DISPLAY
main_group = displayio.Group()
example_frame = Frame(10, 10, display.width // 3, display.height - 16)
main_group.append(example_frame)
display.show(main_group)
while True:
pass
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Documentation
For information on building library documentation, please check out this guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file circuitpython-display-frame-0.0.4.tar.gz
.
File metadata
- Download URL: circuitpython-display-frame-0.0.4.tar.gz
- Upload date:
- Size: 355.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.2 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5045d55459a2b5846ef6dd9f3f04ed791005585965f18bff2330998cd24a7829 |
|
MD5 | 5fdd9deaea96cf290dc3d06ca8ed03e2 |
|
BLAKE2b-256 | 84ad90635db26b8c8b58e1cb73603eb24ffddb3871b7f6952cf3c8126631ca64 |