prompt-toolkit / python-prompt-toolkit

Library for building powerful interactive command line applications in Python
https://python-prompt-toolkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
9.22k stars 715 forks source link

Question: can I have radiolist dialog where a user can select multi options? #890

Closed unixsurfer closed 5 years ago

unixsurfer commented 5 years ago

I need this https://github.com/CITGuru/PyInquirer#checkbox---type-checkbox. Is it possible? I checked the source code and I couldn't find it. Thank you

Leistungsabfall commented 5 years ago

Why not use multiple CheckBox instances instead of a RadioList?

unixsurfer commented 5 years ago

Thanks for your fast reply. As far as I can see CheckBox it doesn't accept a list.

gpotter2 commented 5 years ago

Feel free to checkout https://github.com/prompt-toolkit/python-prompt-toolkit/pull/889, which adds support for CheckboxList.

unixsurfer commented 5 years ago

I will check it out. I hope it will be merged and we will get a new release very soon.