pyface.timer.do_later module

class pyface.timer.do_later.DoLaterTimer(interval, callable, args, kw_args)[source]

Bases: Timer

Performs a callback once at a later time.

This is not used by the do_later functions and is only provided for backwards compatibility of the API.

repeat = 1

The perform the callback once.

pyface.timer.do_later.do_later(callable, *args, **kwargs)[source]

Does something 50 milliseconds from now.

Parameters
  • callable (Callable) – The callable to call in 50ms time.

  • args (tuple, dict) – Arguments to be passed through to the callable.

  • kwargs (tuple, dict) – Arguments to be passed through to the callable.

pyface.timer.do_later.do_after(interval, callable, *args, **kwargs)[source]

Does something after some specified time interval.

Parameters
  • interval (float) – The time interval in milliseconds to wait before calling.

  • callable (Callable) – The callable to call.

  • args – Positional arguments to be passed through to the callable.

  • kwargs – Keyword arguments to be passed through to the callable. Arguments to be passed through to the callable.