kivy-garden / garden.circulardatetimepicker

Android-like date & time picker for Kivy
MIT License
14 stars 7 forks source link

Enforce CircularNumberPicker max #7

Closed secnot closed 6 years ago

secnot commented 6 years ago

Hi

I have done a few more test and it appears that the source of the problem comes from rounding, so changing the max to 59 works but makes harder to select 59 minutes. So the better solution is to enforce the max at CircularNumberPicker.

The other problem is the widget is not python3 compatible because it uses xrange, I have left it as it is but It can be fixed with just this import:

from past.builtins import xrange

depau commented 6 years ago

Feel free to port it to Python3. Please do not depend on past. Use range instead.