Textual Slider
raw JSON → 0.2.0 verified Fri May 01 auth: no python
A Textual widget for a simple slider. Version 0.2.0 requires Python >=3.8 and Textual >=0.42.0. Release cadence appears irregular; early development.
pip install textual-slider Common errors
error ModuleNotFoundError: No module named 'textual_slider' ↓
cause Package not installed or installed under different name (e.g., textual-slider).
fix
Run: pip install textual-slider
error AttributeError: module 'textual_slider' has no attribute 'Slider' ↓
cause Incorrect import path; attempting to import from wrong module.
fix
Use: from textual_slider import Slider
Warnings
breaking Slider API may change in future versions; currently no stable release. ↓
fix Pin to exact version if used in production.
gotcha Slider requires Textual >=0.42.0. Older Textual versions will cause import or runtime errors. ↓
fix Ensure Textual is updated: pip install 'textual>=0.42.0'
deprecated The 'id' parameter is optional but recommended for value retrieval. ↓
fix Always provide an id to access slider.value later via self.query_one('#my_slider').value
Imports
- Slider wrong
from textual_slider.slider import Slidercorrectfrom textual_slider import Slider
Quickstart
from textual.app import App, ComposeResult
from textual_slider import Slider
class SliderApp(App):
def compose(self) -> ComposeResult:
yield Slider(min=0, max=100, default=50, id='my_slider')
if __name__ == '__main__':
SliderApp().run()