The tktimepicker default clock type is 12 hours. How do I change tktimepicker clock type from 12-hours to 24-hours?
CodePudding user response:
Per the documentation, there are two ways:
- Pass an argument
type=constants.HOURS24
to the constructor of your class. - use the
configure_24HrsTime
method onSpinTimePickerModern
andSpinTimePickerOld
objects.
The code is available here if you need to refer to it.