textual-inputs is a collection of input widgets for the Textual TUI framework
Project description
Textual Inputs 🔡
Textual Inputs is a collection of input widgets for the Textual TUI framework.
⚠️ This library is experimental and its interfaces are likely to change, much like the underlying Textual library.
Supported Widgets
TextInput 🔡
- value - string
- one line of text
- placeholder and title support
- password mode to hide input
- support for Unicode characters
- controls: arrow right/left, home, end, delete, backspace/ctrl+h, escape
- emits - InputOnChange, InputOnFocus messages
IntegerInput 🔢
- value - integer or None
- placeholder and title support
- type a number or arrow up/down to increment/decrement the integer.
- controls: arrow right/left, home, end, delete, backspace/ctrl+h, escape
- emits - InputOnChange, InputOnFocus messages
Quick Start
python -m pip install textual-inputs
Checkout the examples for reference.
git clone https://github.com/sirfuzzalot/textual-inputs.git
cd textual-inputs
python3 -m venv venv
source venv/bin/activate
python -m pip install -r requirements.txt
python examples/simple_form.py
To use Textual Inputs
from textual_inputs import TextInput, IntegerInput
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-inputs-0.2.0.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for textual_inputs-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6689d8b803ea3e900a41ab355641345c0cf8d3f17d2a4b83398ac5739d38caf4 |
|
MD5 | e13ef67a11107bf66faefd75b93dd6c6 |
|
BLAKE2b-256 | d9e58358f33189ee9bd472a2f3f9519e7393c32da91bb4155804ef2ccc14c957 |