Skip to main content

A Sliding Container widget for Textual

Project description

textual-slidecontainer

badge badge badge badge badge

This is a library that provides a custom container (widget) called the SlideContainer.

It is designed to make it extremely simple to implement sliding menu bars in your Textual apps.

Features

  • Usage is a single line of code with the default settings. Everything is handled automatically.
  • Set a precise dock position - The dock position argument adds topleft, topright, bottomleft, and bottomright to Textual's 4 arguments of top, bottom, left, and right for 8 dock positions total.
  • Set the slide direction - Containers can slide to the left, right, top, or bottom. This can be changed or tweaked independently of the dock position (For example, dock to bottom right, then you can slide down or slide right.)
  • Enable or disable Floating mode - With a boolean, containers can switch between floating on top of your app, or being a part of it and affecting the layout.
  • Set the default state - Containers can be set to start in closed mode.
  • Set the container to dock as an initialization argument.
  • Floating containers automatically dock to the edge they move towards (this can be changed).
  • Change how the animation looks with the duration, fade, and easing_function arguments.
  • Included demo application which has comments in the code.

Demo App

If you have uv or pipx, you can immediately try the demo app:

uvx textual-slidecontainer
pipx run textual-slidecontainer

Documentation

Click here for documentation

Video

Your browser does not support the video tag.

Questions, Issues, Suggestions?

Use the issues section for bugs or problems, and post ideas or feature requests on the TTY group discussion board.

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_slidecontainer-1.0.0.tar.gz (119.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

textual_slidecontainer-1.0.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file textual_slidecontainer-1.0.0.tar.gz.

File metadata

  • Download URL: textual_slidecontainer-1.0.0.tar.gz
  • Upload date:
  • Size: 119.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for textual_slidecontainer-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7aa4688d07ba7331c3a990f6e3beb067172d6387df62fb0aa7a3a285822e0812
MD5 61672e7fd051f0a5acceeafd8fee4959
BLAKE2b-256 20a45158103fab36bf3402aa8985d2cfca40bf4926d842d69197c89191b05cd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for textual_slidecontainer-1.0.0.tar.gz:

Publisher: release.yml on edward-jazzhands/textual-slidecontainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file textual_slidecontainer-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for textual_slidecontainer-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dda5cd2e9c8a0eaaedbeb2af74dcae360759469d1f1e79fee476a9abdb9b4af8
MD5 57ca41cf21fb7c8f6e7b4a78ab45c988
BLAKE2b-256 e91cf4854aa8d0e1c43e1b64ddd3932236c64c519deade263b2fbc0795a97868

See more details on using hashes here.

Provenance

The following attestation bundles were made for textual_slidecontainer-1.0.0-py3-none-any.whl:

Publisher: release.yml on edward-jazzhands/textual-slidecontainer

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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