pyvista.RenderWindowInteractor.create_timer#

RenderWindowInteractor.create_timer(duration, repeating=True)[source]#

Create a timer.

Parameters:
durationint

Time (in milliseconds) before the timer emits a TimerEvent.

repeatingbool, default: True

When False a one-shot timer is created, which only fires once. When True a repeating timer is created, which continuously fires (every duration milliseconds) until destruction.

Returns:
int

Timer ID.