Skip to content

MDTimePicker

A material design time picker, based on the one from Android 5.0 Lollipop. DP measurements are taken from a real device.

Based on a modified version of garden.circulardatetimepicker, all the source files are already included.

Works in a similar way to MDDialog, and is designed to be called from Python code:

Create class: self.<time_picker> = MDTimePicker()

Bind the OK button to a callback (passes in the time): self.<time_picker>.bind(time=self.get_time), def get_time(self, instance, time):

The time that it opens to: self.<time_picker>.set_time(<datetime object in format "%H:%M:%S">)

To open: self.<time_picker>.open()

Demo is currently in time_picker.py, will be moved to kitchen_sink.py soon. This is marked as WIP because of the other required files. Where should I put them, I cant use garden because the files have been modified and fixed. I'm considering moving the code from the other files into time_picker.py, but I haven't done it yet because it would have been harder to code with a massive file.

Merge request reports