Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kivy-garden/garden.datetimepicker
roulette based datetime selector like in iOS and android.
https://github.com/kivy-garden/garden.datetimepicker
Last synced: about 1 month ago
JSON representation
roulette based datetime selector like in iOS and android.
- Host: GitHub
- URL: https://github.com/kivy-garden/garden.datetimepicker
- Owner: kivy-garden
- License: mit
- Created: 2013-08-27T15:46:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-11-09T18:30:23.000Z (about 9 years ago)
- Last Synced: 2023-03-30T18:25:48.226Z (over 1 year ago)
- Language: Python
- Size: 145 KB
- Stars: 14
- Watchers: 6
- Forks: 3
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DatetimePicker
==============`DatetimePicker` is a roulette based datetime selector like in iOS
and android.Dependencies
------------The only immediate dependency is the garden package ``kivy.garden.roulette``.
However, if you have never installed garden packages before, and start with
only a default kivy python distribution, then the following garden packages
are needed. Use ``garden install`` to install them.a. ``kivy.garden.tickline``
b. ``kivy.garden.roulette``
c. ``kivy.garden.roulettescroll``
Usage
-----Just instantiate ``DatetimePicker()``
if __name__ == '__main__':
from kivy.base import runTouchApp
runTouchApp(DatetimePicker())
This will give you 6 vertical roulettes
that respectively represent year, month, day, hour, minute, and second.`DatetimePicker.selected_value` records the selection from the user.
`DatetimePicker.density` controls how many values are shown at a time.
NICER GRAPHICS!
---------------I didn't focus much on the graphics, or to closely simulate the iOS or android
experience. You are encourage to contribute to improve the default appearance
of the datetimepicker!