A simple Textual canvas widget
Project description
textual-canvas
An example of
textual-canvas being used in a Textual application
Introduction
textual-canvas provides a simple terminal-based drawing canvas widget for
use with Textual. Initially developed as a
widget for building
textual-mandelbrot, it made
sense to spin it out into its own general-purpose library.
Installing
The package can be installed with pip or related tools, for example:
$ pip install textual-canvas
The library
The library provides one very simple widget for use in Textual: Canvas.
This is a scrollable and focusable widget that can be used to colour
"pixels", acting as a basic building block for drawing other things. The
"pixels" themselves are half a character cell in height, hopefully coming
out roughly square in most environments.
See the documentation for an introduction, a usage guide and detailed API documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file textual_canvas-1.1.0.tar.gz.
File metadata
- Download URL: textual_canvas-1.1.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cad9ad99901db25a94e91f7a1b9e14d7db0638c0cb38979a13db13eef1af0ab4
|
|
| MD5 |
76a450777e64c9eaa360221404351954
|
|
| BLAKE2b-256 |
377ef2c65b73f8a795a2ed9fbc65667a80db46b1e85799001e63de9869b7a53d
|
File details
Details for the file textual_canvas-1.1.0-py3-none-any.whl.
File metadata
- Download URL: textual_canvas-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc7a938011c165f1a189fbae4f2e688d68c1fc3276a9111691a8b96514ffede0
|
|
| MD5 |
782b02f907746e6b52642956de8eca66
|
|
| BLAKE2b-256 |
51ecadf15c678f3c373dc781555f112f9f8d5b8b5f8b6b7f28b89b4ef89d440f
|