GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
It would be useful to have a ComboBox widget, like this:
I did a little proof of concept in the combobox branch (https://github.com/kivy/kivy/tree/combobox), can you test and see if it's useful for you? Also, in a lot of situations using a Popup is a better alternative.
Thank you for the quick reply. I tested it, and only a few things are missing. One should be able to set a default value, and the popup should stay opened after the first touch, not disappearing if the touch disappears.
Thank you for your help.
To set the default value, just pass a value to the text propery as you would do for any widget.
For the ergonomics of it, can you describe what should trigger the closing of the options? I thought about it a little and the current solution seemed the most satisfying, would you prefer it to stay open until a second touch on an option is done? should it try to be smart and decide whether it's a one-touch or a two-touch one, based on time or on distance moved?
Thank you again. Yes, I thought about it and now I'm pretty sure you are right: the current solution is the most satisfying and useful. The other solutions are simply too complicated... I would just add a couple of properties / events that might be useful:
As for the default value, doing as you suggested I don't have that value among self.values. I'll open a pull request to add those two ideas.
granted :) (branch updated)
Is the spinner is doing the work, then can you close the issue ? @rubix @tshirtman
Yes, the Spinner is awesome! :) Thanks.