bchao1 / bullet

🚅 Interactive prompts made simple. Build a prompt like stacking blocks.
https://pypi.org/project/bullet/
MIT License
3.55k stars 113 forks source link

Use dict as choices #27

Open D3f0 opened 5 years ago

D3f0 commented 5 years ago

It'd be great to support dictionaries as choices for the Bullet class. This allows to present a user friendly input to the user, but keep arbitrary types as results, for example integers or callables.

lelutin commented 4 years ago

I'd also be interested to see this for the Check class, and also for the Scrollbar class. In the same way in those classes, you're choosing from a list of items so it'd be interesting to get a list of hidden values instead of displayed labels.