A Sliding Container widget for Textual
Project description
textual-slidecontainer
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 yor 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-pyfiglet
Documentation
Click here for documentation
Questions, issues, suggestions?
Feel free to post an issue.
Gif
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
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_slidecontainer-0.5.2.tar.gz.
File metadata
- Download URL: textual_slidecontainer-0.5.2.tar.gz
- Upload date:
- Size: 88.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c206cc629acfba729a3c300fbdc4690326bf6f33bf102a7bebd31d0794ab6c55
|
|
| MD5 |
f3634c1a9494564d21f4c7480f5f3623
|
|
| BLAKE2b-256 |
fef262381768399bc15036642ebc24101b72521a328c21d625fc2a5c79b64221
|
File details
Details for the file textual_slidecontainer-0.5.2-py3-none-any.whl.
File metadata
- Download URL: textual_slidecontainer-0.5.2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013d29f8ec2ec5b809eba88370389c9ad001a9c339e611ff576690739e95fbd8
|
|
| MD5 |
af99655453c79a734be98fb470ccdc4b
|
|
| BLAKE2b-256 |
61d48be85bf085bd6408eebe60705af865b2eb41d9144e447f2eed7798bcc89b
|