Bases: enaml.widgets.control.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.
The minimum datetime available in the datetime edit. If not defined then the default value is midnight September 14, 1752.
The maximum datetime available in the datetime edit. If not defined then the default value is the second before midnight December 31, 7999.
The currently selected date. Default is datetime.now(). The value is bounded between minimum and maximum.
Return a dictionary which contains all the state necessary to initialize a client widget.
A method called after initialization which allows the widget to bind any event handlers necessary.
The handler for the ‘datetime_changed’ action sent from the client widget.
alias of __NoInterface__
Bases: enaml.qt.qt_control.QtControl
A base class for implementing Qt-Enaml datetime widgets.
A signal handler to connect to the datetime changed signal of the underlying widget.
This will convert the QDateTime to iso format and send the Enaml widget the ‘event-changed’ action.
Return the current datetime in the control.
Returns: | result (QDateTime) – The current control datetime as a QDateTime object. |
---|
Set the widget’s current datetime.
Implementations should enter the loopback guard using the key ‘datetime’ before setting the datetime.
Parameters: | datetime (QDateTime) – The QDateTime object to use for setting the datetime. |
---|