-
Notifications
You must be signed in to change notification settings - Fork 115
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
Comments
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
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
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.
The text was updated successfully, but these errors were encountered: