ProgressMonitor

ProgressMonitor#

class ProgressMonitor(*args, **kwargs)[source]#

A standard class for monitoring the progress of a VTK algorithm.

This must be use in a with context and it will block keyboard interrupts from happening until the exit event as interrupts will crash the kernel if the VTK algorithm is still executing.

Parameters:
algorithm

VTK algorithm or filter.

messagestr, default: “”

Message to display in the progress bar.

Methods#

ProgressMonitor.handler(sig, frame)

Pass signal to custom interrupt handler.