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.
The minimum time available in the control. If not defined then the default value is midnight.
The maximum time available in the control. If not defined then the default value is the second before midnight.
The currently selected time. Default is datetime.now().time(). 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 ‘time_changed’ action sent from the client widget.
alias of __NoInterface__
Bases: enaml.qt.qt_control.QtControl
A base class for implementing Qt-Enaml time widgets.
A signal handler to connect to the time changed signal of the underlying widget.
This will convert the QTime to iso format and send the Enaml widget the ‘time_changed’ action.
Return the current time in the control.
Returns: | result (QTime) – The current control time as a QTime object. |
---|
Set the widget’s current time.
Implementations should enter the loopback guard using the key ‘time’ before setting the time.
Parameters: | time (QTime) – The QTime object to use for setting the time. |
---|