15 lines
339 B
Python
15 lines
339 B
Python
"""Filter input (hidden until you press /)."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from textual.widgets import Input
|
|
|
|
|
|
class SearchInput(Input):
|
|
def __init__(self) -> None:
|
|
super().__init__(
|
|
placeholder="filter stations… (enter tune · esc close)",
|
|
id="search",
|
|
disabled=True,
|
|
)
|