# enaml.widgets.bounded_datetime

Classes

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

class enaml.widgets.bounded_datetime.BoundedDatetime(parent=None, **kwargs)

  Bases: `Control`

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

  minimum

    The minimum datetime available in the datetime edit. If not defined then the default value is midnight September 14, 1752.

  maximum

    The maximum datetime available in the datetime edit. If not defined then the default value is the second before midnight December 31, 7999.

  datetime

    The currently selected date. Default is datetime.now(). The value is bounded between `minimum` and `maximum`.

  proxy

    A reference to the ProxyBoundedDatetime object.

  activated

    An event fired when an object’s proxy is activated. It is triggered once during the object lifetime, at the end of the activate_proxy method.

  background

    The background color of the widget.

  destroyed

    An event fired when an object has been destroyed. It is triggered once during the object lifetime, just before the object is removed from the tree structure.

  enabled

    Whether or not the widget is enabled.

  initialized

    An event fired when an object is initialized. It is triggered once during the object lifetime, at the end of the initialize method.

  name

    Export the ‘name’ attribute as a declarative member.

  style_class

    The style class to which this item belongs. Multiple classes can be separated with whitespace. An empty string indicates the widget does not belong to any style class.