pyvista.Timer#

class Timer(max_steps, callback)[source]#

Timer class.

Parameters:
max_stepsint

Maximum number of steps to allow for the timer before destroying it.

callbackcallable()

A callable that takes one argument. It will be passed step, which is the number of times the timer event has occurred.

Methods

Timer.execute(obj, _event)

Execute Timer.