[vtkusers] Question key conversion in QVTKRenderWindowInteractor.keyPressEvent

Elvis Stansvik elvis.stansvik at orexplore.com
Thu Jun 16 08:32:58 EDT 2016


2016-06-16 14:12 GMT+02:00 David Gobbi <david.gobbi at gmail.com>:

> Hi Elvis,
>
> The commit logs might hold the answers to some of your questions.
>
> Here's the history line for when QVTKRenderWindowInteractor.py was created:
>
> https://gitlab.kitware.com/vtk/vtk/commits/720b580c/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py
>
> The history continues here:
>
> https://gitlab.kitware.com/vtk/vtk/commits/3f70e5ff/Wrapping/Python/vtk/qt4/QVTKRenderWindowInteractor.py
>
> And finally comes to the present:
>
> https://gitlab.kitware.com/vtk/vtk/commits/master/Wrapping/Python/vtk/qt/QVTKRenderWindowInteractor.py
>
> Also, here is some pre-history:
>
> https://gitlab.kitware.com/vtk/vtk/commits/bae05540/Wrapping/Python/QVTKRenderWidget.py
> https://gitlab.kitware.com/vtk/vtk/tree/5b48ce33/Wrapping/Python
>
>
Thanks for the pointers, but it seems the code was like that when the Qt 4
variant was initially contributed by Phil Thomson:


https://gitlab.kitware.com/vtk/vtk/commit/720b580c32b1ab002572fa59d796e409b5b0c346

But even if we forget about history/origin, doesn't it seem strange to use
str(ev.text()) in the keyPressEvent?

Elvis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160616/2ec18f09/attachment.html>


More information about the vtkusers mailing list