[vtkusers] special keys

David Gobbi dgobbi at imaging.robarts.ca
Tue Oct 15 10:04:15 EDT 2002


Hi Vincent,

If you use the wxVTKRenderWindow (which comes with VTK 4.n)
you can get the key code from the event:

def MyKeyFunc(event):
    if event.GetKeyCode() == WXK_RIGHT:
        do something

EVT_KEY_DOWN(window,MyKeyFunc) # 'window' is a wxVTKRenderWindow

 - David

On Tue, 15 Oct 2002, Vincent wrote:

> Hi,
> Does anyone have an idea how I can capture key events from special keys
> (arrows, etc.)  in VTK? I'm using python and wxWindows.
> Thanks.
>
> Vincent Dercksen
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list