You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
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.
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: