enaml.widgets.bounded_time

Classes

BoundedTime

A base class for use with widgets that edit a Python datetime.time object bounded between minimum and maximum values.

class enaml.widgets.bounded_time.BoundedTime(parent=None, **kwargs)[source]

Bases: enaml.widgets.control.Control

A base class for use with widgets that edit a Python datetime.time object bounded between minimum and maximum values. This class is not meant to be used directly.

minimum

The minimum time available in the datetime edit. The default value is midnight.

maximum

The maximum time available in the datetime edit. The default is one second before midnight.

time

The currently selected time. Default is datetime.now().time(). The value is clipped between minimum and maximum.

proxy

A reference to the ProxyBoundedTime object.