It would be nice to be able to hide the numbers when using ChoiceInput by setting show_numbers to False:
Currently I have hidden them using this hack:
class ChoiceInputNoNumbers(ChoiceInput[_T]):
"""ChoiceInput with row numbers hidden."""
@override
def _create_application(self) -> Application[_T]:
app = super()._create_application()
ctrl = app.layout.current_window.content
if hasattr(ctrl, "text") and isinstance(getattr(ctrl.text, "__self__", None), RadioList):
ctrl.text.__self__.show_numbers = False
return app
It would be nice to be able to hide the numbers when using
ChoiceInputby settingshow_numberstoFalse:python-prompt-toolkit/src/prompt_toolkit/shortcuts/choice_input.py
Line 131 in f04219e
Currently I have hidden them using this hack: