traitsui.editors.time_editor module

A Traits UI editor that wraps a timer control.

class traitsui.editors.time_editor.TimeEditor(*args, **traits)[source]

Bases: EditorFactory

Editor factory for time editors.

message = Str("Undefined")

Message to show when Time is None.

strftime = Str("%I:%M:%S %p")

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

view = AView

An optional view to display when a read-only text editor is clicked: