<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Aashish and David --</div><div><br></div><div>Thank you both for your responses!</div><div><br></div><div>I have been using PySide. Do I need PyQt for the GUISupport wrappers, or has someone provided a way to obtain the wrappers with pyside?</div><div><br></div><div>Thanks!</div><div>Amos.</div><div><br></div><div><br></div><div><br></div><br><div><div>On Nov 22, 2013, at 11:36 AM, Aashish Chaudhary <<a href="mailto:aashish.chaudhary@kitware.com">aashish.chaudhary@kitware.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><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>
</blockquote></div><br></body></html>