Python Tkinter integration with pyvista

Viewed 22

I'm working on a python 3.10 in VS Code environment.

I want to visualize 3D vtk in Tkinter Canvas through pyvista module, but it seems Tkinter itself doesn't support the function.

I've already read https://discourse.vtk.org/t/error-importing-vtktkrenderwindowinteractor-in-vtk-8-2-0/856 but it is quite treaky to understand for me..

currently, error log below is showon if I run code in reference question: Is there a way to integrate Pyvista with tkinter?

"_tkinter.TclError: couldn't load library "vtkRenderingTk-9.2.dll": this library or a dependent library could not be found in library path"

It seems like I've got to make "vtkRenderingTk-9.2.dll" by Cmake, but I have no idea..... Please let me know how to display the 3D view from pyvista in Tkinter window..

Thank you very much.

0 Answers
Related