Код: Выделить всё
class ToDoApp(App):
BINDINGS = [
Binding(key="q", action="quit", description="Quit the app"),
Binding(
key="question_mark",
action="help",
description="Show help screen",
key_display="?",
),
Binding(key="n", action="new", description="New ToDo", show=True),
Binding(key="d", action="delete", description="Delete ToDo", show=True),
Binding(key="j", action="down", description="Scroll down", show=True),
Binding(key="k", action="up", description="Scroll up", show=True),
Binding(key="enter", action="select", description="Select", show=True),
]
...
def action_select(self) -> None:
if self.focused == OptionList:
self.query_one(SelectionList).focus()
Что может быть не так?