Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use dict as choices #27

Open
D3f0 opened this issue Mar 6, 2019 · 1 comment
Open

Use dict as choices #27

D3f0 opened this issue Mar 6, 2019 · 1 comment

Comments

@D3f0
Copy link

D3f0 commented Mar 6, 2019

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.

CurtisPreston99 added a commit to CurtisPreston99/bullet that referenced this issue Mar 7, 2019
the way this works is you define a dict the keys are shown to the user but the values are returned when selected. i think this would be nice to have
added it to client file as class BulletDict, and set up in init, also added an example feel free to give me advice on how to improve this class
CurtisPreston99 added a commit to CurtisPreston99/bullet that referenced this issue Mar 8, 2019
fixing what was suggested by rcfox on pull request bchao1#27
@lelutin
Copy link

lelutin commented Apr 25, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants