traitsui.editors.styled_date_editor module¶
- class traitsui.editors.styled_date_editor.StyledDateEditor(*args, **traits)[source]¶
Bases:
DateEditor
A DateEditor that can show sets of dates in different styles.
- allow_future = Bool(True)¶
Allow selection of arbitrary dates in the future.
- allow_past = Bool(True)¶
Allow selection of arbitrary dates in the past.
- dates_trait = Str()¶
The name of a dictionary on the object that maps names to groups (list/tuples) of datetime.date objects. Each of these groups can be styled using the styles dict.
- relative_dates = List()¶
A list of strings that will be offered as an alternative to specifying an absolute date, and instead specify a relative date.
- styles_trait = Str()¶
The name of a dictionary on the object that maps names of styles to CellFormat objects. The names used must match the names used in the dates dict.
- traitsui.editors.styled_date_editor.ToolkitEditorFactory¶
alias of
StyledDateEditor