schedule_interval Function

Defined in pyglet.clock

schedule_interval(func, interval, *args, **kwargs)

Schedule ‘func’ to be called every ‘interval’ seconds on the default clock.

The arguments passed to ‘func’ are ‘dt’ (time since last function call), followed by any *args and **kwargs given here.

Parameters:
  • func (function) – The function to call when the timer lapses.
  • interval (float) – The number of seconds to wait between each call.

Previous topic

schedule Function

Next topic

schedule_interval_soft Function