How to draw lines and annotate on vtkImageView2

How to draw lines and annotate on vtkImageView2?How to use the python language, correctly use line classes such as vtkLineWidget and vtkImageTracerWidget in vtkImageView2?

These two C++ examples may give you some ideas:

There are no Python examples using vtkImageView2.

Thank you for your reply, when I load the dicom file with vtkImageView2, for example, I want to use vtkImageTracerWidget to sketch on it, but when the program runs, it cannot be overwritten, it seems that the image covers the widget, why?