enaml.widgets.date_selector
Classes
A widget to edit a Python datetime.date object. |
- class enaml.widgets.date_selector.DateSelector(parent=None, **kwargs)[source]
Bases:
BoundedDate
A widget to edit a Python datetime.date object.
A DateSelector displays a Python datetime.date using an appropriate toolkit specific control. This is a geometrically smaller control than what is provided by Calendar.
- date_format
A python date format string to format the date for display. If none is supplied (or is invalid) the system locale setting is used. This may not be supported by all backends.
- calendar_popup
Whether to use a calendar popup for selecting the date.
- hug_width
A date selector expands freely in width by default.
- proxy
A reference to the ProxyDateSelector 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.