traitsui.editors.datetime_editor module

A Traits UI editor

class traitsui.editors.datetime_editor.DatetimeEditor(*args, **traits)[source]

Bases: EditorFactory

Editor factory for the datetime editor.

maximum_datetime = Datetime(datetime.datetime.max, allow_none=True)

The latest datetime allowed by the editor

message = Str("Undefined")

Message to show when datetime is None.

minimum_datetime = Datetime(datetime.datetime(100, 1, 1), allow_none=True)

The earliest datetime allowed by the editor

strftime = Str("%Y-%m-%dT%H:%M:%S")

The string representation of the datetime to show. Uses time.strftime format.