schedule_interval_soft Function

Defined in pyglet.clock

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

Schedule ‘func’ to be called every ‘interval’ seconds on the default clock, beginning at a time that does not coincide with other scheduled events.

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

See:Clock.schedule_interval_soft

Note

Since pyglet 1.1

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_interval Function

Next topic

schedule_once Function