VTK with tkinter

The vtkTkRenderWindowInteractor is no longer used nor regularly tested by any of the VTK developers. So unless you really need it you should probably not use it. But if you need it, here is some information about its use.

  1. The vtkRenderingTk-9.0.dll is not part of the binary VTK package (not in the package from the vtk website, and not in the pip package either).

  2. So if you want to use it, you must first build tcl-8.6.8 and tk8.6.8 from source, and then you must build VTK from source with VTK_USE_TK=ON.

  3. After the build, find “vtkRenderingTk-9.0.dll” in the bin directory, and move it into Python’s site-packages director.