<div class="gmail_quote"><div class="gmail_quote"><div class="im"><br>On Mon, Aug 15, 2011 at 4:12 PM, Jean-Christophe Fillion-Robin <span dir="ltr"><<a href="mailto:jchris.fillionr@kitware.com" target="_blank">jchris.fillionr@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Panos, <br><br>Would be great if you could submit a patch on gerrit for review.<br>See <a href="http://www.vtk.org/Wiki/VTK/Git#Gerrit" target="_blank">http://www.vtk.org/Wiki/VTK/Git#Gerrit</a><br><br>Thanks<br>Jc<br>

</blockquote></div><div><br>Hi Jean-Christophe,<br><br>I've managed to reproduce the bug. You can easily observe it when you use a vtkScalarBarWidget and you try to move it on screen. I am attaching a minimum "working" (reproducing would be more accurate) example. The dependencies in order to run the file are Python2, VTK and PyQt4.<br>

<br>The ScalarBarWidget is moving on screen but the following traceback is produced<br><br><span style="font-family:courier new,monospace">Traceback (most recent call last):</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">  File "/usr/lib/python2.7/site-packages/vtk/qt4/QVTKRenderWindowInteractor.py", line 211, in ShowCursor</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">    self.setCursor(cursor)</span><br style="font-family:courier new,monospace">

<span style="font-family:courier new,monospace">NameError: global name 'cursor' is not defined</span><br><br>Changing the last line of the ShowCursor method (line 220 on the git repo) of QVTKRenderWindowInteractor class ( path : VTK/Wrapping/Python/vtk/qt4/QVTKRenderWindowInteractor.py), from<br>

<span style="font-family:courier new,monospace"><br>self.setCursor(cursor)</span><br><br>to <br><br><span style="font-family:courier new,monospace">self.setCursor(qt_cursor)</span><br><br>results to no traceback. <br>
<br>This is the link to Gerrit ( <a href="http://review.source.kitware.com/#change,2469" target="_blank">http://review.source.kitware.com/#change,2469</a> ). Who should I add as a reviewer?<br><br>with regards,<br>Panos<br>
<br>ps. Perhaps this is not the appropriate list, but how can you add examples to the wiki? I have created an account but it says that I don't have the rights to create a new page. I can edit this page though... ( <a href="http://www.vtk.org/Wiki/VTK/Examples/Python" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Python</a> )<br>

</div></div>
</div><br>