A select widget (aka dropdown) for Textual.
Project description
Textual: Select
A simple select widget (aka dropdown) for textual.
Usage
from textual_select import Select
dropdown_data = [
{"value": 0, "text": "Pick-Up"},
{"value": 1, "text": "SUV"},
{"value": 2, "text": "Hatchback"},
{"value": 3, "text": "Crossover"},
{"value": 4, "text": "Convertible"},
{"value": 5, "text": "Sedan"},
{"value": 6, "text": "Sports Car"},
{"value": 7, "text": "Coupe"},
{"value": 8, "text": "Minivan"}
]
Select(
placeholder="please select",
items=dropdown_data,
list_mount="#main_container"
)
Installation
pip install textual-select
Requires textual 0.6.0 or later.
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
textual_select-0.1.1.tar.gz
(5.3 kB
view hashes)
Built Distribution
Close
Hashes for textual_select-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa1b899b680ff0a80ab3edf0bad5a74dbbf6ad8f426f4c89d47e8f99e92ddfb1 |
|
MD5 | ab4af64f6df06763034d4d59b048062c |
|
BLAKE2b-256 | 24bb960b6ab24901c996ff6b52aeae885ff199f2a6163daf39488f22018f907d |