[maemo-developers] hildon.TimePicker: HOW TO SET INITIAL TIME?

From: Darren Enns darethehair at gmail.com
Date: Wed Feb 20 19:22:11 EET 2008
OK, my ignorance is showing again...

http://maemo.org/development/documentation/apis/3-x/python-maemo-3.x/pyhildon_timepicker.html

I know how to call 'hildon.Timepicker', but the widget starts up with 
'06:00' as the initial value.  From the docs, it *looks* like I should 
be able to override this with my own initial values for 'hour' and 
'minute', but I don't know enough about Python (yet) to understand how 
to do this (from simply reading the docs and not having an example to use).

It would appear (from the docs) that I should use something like this in 
my code:

|hildon.Class.set_time(hours, minutes)

|The 'hildon.CalendarPopup' is more intuitive to me, since setting the 
initial year/month/day is part of the call to the function itself.

Thanks
|
|

More information about the maemo-developers mailing list