<div dir="ltr">Hi Amos, <div><br></div><div style>QVTK* modules are not wrapped in VTK. But you can use pyside and pyqt4 for a VTK - QT application in python. </div><div style><br></div><div style>- Aashish</div><div style>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 22, 2013 at 1:10 PM, Amos Anderson <span dir="ltr"><<a href="mailto:amos.anderson@protabit.com" target="_blank">amos.anderson@protabit.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello VTK Users --<br>
<br>
How to I get GUISupport python wrappers in vtk 6? I can find a lot of testing/example python code that uses them (e.g. in GUISupport/Qt/Testing/Python) but my vtkpython doesn't have them:<br>
<br>
<br>
> vtkpython<br>
>>> import vtk<br>
>>> vtk.QVTKWidget2()<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
AttributeError: 'module' object has no attribute 'QVTKWidget2'<br>
<br>
<br>
<br>
VTK6.0.0> ls Wrapping/Python/vtk/qt4<br>
QVTKRenderWindowInteractor.pyc QVTKRenderWindowInteractor.py<br>
__init__.pyc __init__.py<br>
<br>
<br>
<br>
Here's how I'm compiling VTK:<br>
<br>
$(CMAKE) -DVTK_WRAP_PYTHON:BOOL=ON -DPYTHON_EXECUTABLE:FILEPATH=$(PYTHON)/bin/python -DPYTHON_INCLUDE_DIR:PATH=$(PYTHON)/include/python2.7 -DPYTHON_LIBRARY:FILEPATH=$(PYTHON)/lib/libpython2.7.dylib -DQT_QMAKE_EXECUTABLE:FILEPATH=$(QMAKE) -DModule_vtkGUISupportQt:BOOL=ON -DModule_vtkGUISupportQtOpenGL:BOOL=ON<br>
<br>
<br>
is there an option I'm missing? Or is this something that will be fixed in the next version of VTK? (when will that be?)<br>
<br>
Thanks!<br>
Amos.<br>
<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>| Aashish Chaudhary <br>| R&D Engineer <br>| Kitware Inc. <br>| <a href="http://www.kitware.com">www.kitware.com</a>
</div>