Bases: enaml.widgets.bounded_datetime.BoundedDatetime
A datetime widget that displays a Python datetime.datetime object using an appropriate toolkit specific control.
A python date format string to format the datetime. If None is supplied (or is invalid) the system locale setting is used. This may not be supported by all backends.
Whether to use a calendar popup for selecting the date.
How strongly to hugs the content width. A DatetimeSelector ignores the width hug by default, so it expands freely in width.
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.
alias of __NoInterface__
Bases: enaml.qt.qt_bounded_datetime.QtBoundedDatetime
A Qt implementation of an Enaml DatetimeSelector.
Handle the ‘set_datetime_format’ action from the Enaml widget.
Handle the ‘set_calendar_popup’ action from the Enaml widget.
Return the current datetime in the control.
Returns: | result (QDateTime) – The current control datetime as a QDateTime object. |
---|
Set the widget’s current datetime.
Parameters: | datetime (QDateTime) – The QDateTime object to use for setting the datetime. |
---|
Set the widget’s maximum datetime.
Parameters: | datetime (QDateTime) – The QDateTime object to use for setting the maximum datetime. |
---|
Set the widget’s minimum datetime.
Parameters: | datetime (QDateTime) – The QDateTime object to use for setting the minimum datetime. |
---|