Viewer.on

Viewer.on(interval, frames=None)[source]

Decorator for callbacks of a dynamic drawing process with fixed intervals.

Parameters interval : int

Interval between subsequent calls to this function, in milliseconds.

framesint, optional

The number of frames of the process. If no frame number is provided, the process continues until the viewer is closed.

Returns:
Callable