Textual Inputs is a collection of input widgets for the Textual TUI framework.
- value - string
- one line of text
- placeholder and title support
- password mode to hide input
- support for ASCII printable characters
- controls: arrow right/left, home, end, delete, backspace/ctrl+h, escape
- emits - InputOnChange, InputOnFocus messages
- 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
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