Bases: enaml.widgets.bounded_date.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.
A python date format string to format the date for display. If 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 DateSelector 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_date.QtBoundedDate
A Qt implementation of an Enaml DateSelector.
Handle the ‘set_date_format’ action from the Enaml widget.
Handle the ‘set_calendar_popup’ action from the Enaml widget.
Return the current date in the control.
Returns: | result (QDate) – The current control date as a QDate object. |
---|
Set the widget’s current date.
Parameters: | date (QDate) – The QDate object to use for setting the date. |
---|
Set the widget’s maximum date.
Parameters: | date (QDate) – The QDate object to use for setting the maximum date. |
---|
Set the widget’s minimum date.
Parameters: | date (QDate) – The QDate object to use for setting the minimum date. |
---|
Bases: enaml.wx.wx_bounded_date.WxBoundedDate
A Wx implementation of an Enaml DateSelector.
Handle the ‘set_date_format’ action from the Enaml widget.
Return the current date in the control.
Returns: | result (wxDateTime) – The current control date as a wxDateTime object. |
---|
Set the widget’s current date.
Parameters: | date (wxDateTime) – The wxDateTime object to use for setting the date. |
---|
Set the widget’s maximum date.
Parameters: | date (wxDateTime) – The wxDateTime object to use for setting the maximum date. |
---|
Set the widget’s minimum date.
Parameters: | date (wxDateTime) – The wxDateTime object to use for setting the minimum date. |
---|
Set the widget’s date format.
Parameters: | date_format (str) – A Python time formatting string. |
---|
Note
Changing the format on wx is not supported. See http://trac.wxwidgets.org/ticket/10988