-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
Support for military time in MDTimePicker #132
Comments
I think that 24-hour time picker is very useful feature. We should implement it as two rows of numbers how it did Google. |
If someone is already doing this, let me know, then I will solve other problems. |
@HeaTTheatR I will try to look into other ways of contributing to this project. |
@EsbenLorenzen I can send you draft of this. |
@HeaTTheatR |
Dear All, from kivy.lang import Builder
from kivymd.app import MDApp
from kivymd.uix.pickers import MDTimePicker
KV = '''
MDFloatLayout:
MDRaisedButton:
text: "Open time picker"
pos_hint: {'center_x': .5, 'center_y': .5}
on_release: app.show_time_picker()
'''
class Test(MDApp):
def build(self):
return Builder.load_string(KV)
def show_time_picker(self):
'''Open time picker dialog.'''
time_dialog = MDTimePicker()
time_dialog.open()
Test().run() |
OK, as I see now, this is not included at all in the current master branch. Too bad, this feature would be very welcome. Are there still plans to make this work?.. |
@Babber We removed this functionality as unnecessary. |
Thanks for the answer @HeaTTheatR. Although I don't quite get it. According to Wikipedia:
This means that there are a few billions of people (apparently the majority of humanity) whose preference is deemed unnecessary to consider here, even as an optional feature?.. To be honest, I find this rather disappointing. |
@HeaTTheatR |
@Babber I don't think we will include this functionality in the library again. At the developer level, you can easily transform the time into any format depending on the AM/PM values. But in any case, no one bothers you to assign a reward for adding this functionality. |
@HeaTTheatR |
@Babber |
@HeaTTheatR But anyway, I don't want to pester you any more with this. You're the core developer here and I respect your decisions of course. KivyMD is still a great project, I do like it and I do appreciate your work! Thank you for this and many thanks for the discussion too. |
For anyone who's interested in the same TimePicker extended with the 24-hour clock: |
Description of the Feature
Are there plans to implement support for military time (24 hour clock) in the circular time picker?
I've looked through the source code of kivy.vendor.circularTimePicker, and it seems like some work has already been done on this feature. There is some code commented out, but it seems to be a bit incomplete.
Any status on this feature? Almost ready to be released, or nowhere near completion?
I would like to offer my help on this functionality, but I am unsure if my python-skills are good enough to pull this off. In any case, any additional information would be helpful.
Below is the code, where I found the commented sections.
Code and Logs
kivymd.vendor.circularTimePicker @ line 503:
Versions
The text was updated successfully, but these errors were encountered: