[vtk-developers] QVTKRenderWindowInteractor bug?

Panagiotis Mavrogiorgos pmav99 at gmail.com
Sun Aug 14 16:15:26 EDT 2011


Hi everyone,

in QVTKRenderWindowInteractor class, on line 216 there is the ShowCursor
method

    def ShowCursor(self):
        """Shows the cursor."""
        vtk_cursor = self._Iren.GetRenderWindow().GetCurrentCursor()
        qt_cursor = self._CURSOR_MAP.get(vtk_cursor, QtCore.Qt.ArrowCursor)
        self.setCursor(cursor)

I haven't run in any problems with it, but as I am writing an applications
that embeds VTK in PyQt I was trying to gain better understanding of vtk
internals by broswing its source code. As it is now, object "cursor" is not
defined anywhere. Shouldn't the last line be something like this instead:

        self.setCursor(qt_cursor)

Should I open a bug ticket?

with regards,
Panos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtk-developers/attachments/20110814/39ca158e/attachment.htm>


More information about the vtk-developers mailing list