Skip to main content

A simple Textual canvas widget

Project description

textual-canvas

Being used for textual-mandelbrot 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

textual_canvas-0.4.0.tar.gz (267.4 kB view details)

Uploaded Source

Built Distribution

textual_canvas-0.4.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file textual_canvas-0.4.0.tar.gz.

File metadata

  • Download URL: textual_canvas-0.4.0.tar.gz
  • Upload date:
  • Size: 267.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for textual_canvas-0.4.0.tar.gz
Algorithm Hash digest
SHA256 90a461f71fff14dc8fdbd5514a2e2d9f419fa4e05e365b0a2abc97cd4af81b29
MD5 01757c27a4140b77de10bfbb587406fe
BLAKE2b-256 c7a390565f690bac5e6debb30cb93805f7c7ec0e9717cf181d0ddd00246e28b2

See more details on using hashes here.

File details

Details for the file textual_canvas-0.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_canvas-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b3ca8ac5d24e3c02a3c82b265adc9750a611c9e817af8f1ce46d785496775a6
MD5 64429f121f520ac7da8a0cd6bc56a056
BLAKE2b-256 38afd80671b66e463343699f966baec5e0616626d1b8836e5e25c9f329c26f81

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page