globalforest/kivymd/vendor/circularTimePicker
2020-10-14 23:38:48 +03:00
..
__init__.py move source back to the main dir 2020-10-14 23:38:48 +03:00
LICENSE move source back to the main dir 2020-10-14 23:38:48 +03:00
README.md move source back to the main dir 2020-10-14 23:38:48 +03:00

Circular Date & Time Picker for Kivy

(currently only time, date coming soon)

Based on CircularLayout. The main aim is to provide a date and time selector similar to the one found in Android KitKat+.

Screenshot

Simple usage

Import the widget with

from kivy.garden.circulardatetimepicker import CircularTimePicker

then use it! That's it!

c = CircularTimePicker()
c.bind(time=self.set_time)
root.add_widget(c)

in Kv language:

<TimeChooserPopup@Popup>:
    BoxLayout:
        orientation: "vertical"

        CircularTimePicker

        Button:
            text: "Dismiss"
            size_hint_y: None
            height: "40dp"
            on_release: root.dismiss()