enaml.widgets.timer

Classes

Timer

An object which represents a toolkit independent timer.

class enaml.widgets.timer.Timer(parent=None, **kwargs)[source]

Bases: enaml.widgets.toolkit_object.ToolkitObject

An object which represents a toolkit independent timer.

interval

The interval of the timer, in milliseconds. The default is 0 and indicates that the timer will fire as soon as the event queue is emptied of all pending events.

single_shot

Whether the timer fires only once, or repeatedly until stopped.

timeout

An event fired when the timer times out.

proxy

A reference to the ProxyTimer object.

start()[source]

Start or restart the timer.

If the timer is already started, it will be stopped and restarted.

stop()[source]

Stop the timer.

If the timer is already stopped, this is a no-op.

is_active()[source]

Returns True if the timer is running, False otherwise.