[maemo-developers] hildon.TimePicker: HOW TO SET INITIAL TIME?
From: Daniel Martin Yerga dyerga at gmail.comDate: Thu Feb 21 16:55:19 EET 2008
- Previous message: hildon.TimePicker: HOW TO SET INITIAL TIME?
- Next message: hildon.TimePicker: HOW TO SET INITIAL TIME?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. On Wed, 20 Feb 2008 11:22:11 -0600 Darren Enns <darethehair at gmail.com> wrote: > 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 It means you need to use something like this: time_picker = hildon.Timepicker(parent) time_picker.set_time(hours, minutes) In the docs, it may not be easy to understand the hildon.Class.set..., especially if you are learning python, as in your case. - -- Daniel Martin Yerga http://yerga.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFHvZDbcnvB1T3xmfMRAt1cAJ9f67CfiOA5+TO0mVBKblgU2R0fygCeLrMB UjfulTi5Z5scpyK129xXE/4= =/hch -----END PGP SIGNATURE-----
- Previous message: hildon.TimePicker: HOW TO SET INITIAL TIME?
- Next message: hildon.TimePicker: HOW TO SET INITIAL TIME?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]