简体   繁体   中英

python vtk: how to import QVTKOpenGLNativeWidget

In c++, QVTKOpenGLNativeWidget can be included.

For python vtk, I also want to import QVTKOpenGLNativeWidget, is it possible? How can I import QVTKOpenGLNativeWidget?

No, you cannot import QVTKOpenGLNativeWidget in Python because the Python bindings for VTK doesn't have that class (as of VTK 8.2.0). A quick grep doesn't find it anywhere in the VTK python package. I grepped /usr/lib64/python3.6/site-packages/vtk* (which is where I have python3-vtk installed) recursively for QVTKOpenGLNativeWidget and grep didn't find anything.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM