[wxPython-users] Problem with mouse event

Gavana, Andrea gavana at kpo.kz
Sat Jun 3 01:15:51 PDT 2006


Hello Leticia,

> I have a little program in which I show figures inside a 
> 
> wxVTKRenderWindowInteractor. The example works ok, but now I 
> want to select 
> 
> this figures with the mouse, which event is better for that?? 
> I have tried 
> 
> EVT_MOUSE_EVENTS but it didn't work, so.. Any idea??

You should really tell us in which way the mouse events do not work. In any case, wxVTKRWI is a small beast, and in order to be able to select actors inside the render window you should really look at the VTK events (that are usually called "observers"), not directly the wxPython events. The VTK documentation, even if a little bit frustrating, will be your friend here.

Andrea.

_________________________________________
Andrea Gavana (gavana at kpo.kz)
Reservoir Engineer
KPDL
4, Millbank
SW1P 3JA London
 
Direct Tel: +44 (0) 20 717 08936
Mobile Tel: +44 (0) 77 487 70534
Fax: +44 (0) 20 717 08900
Web: http://xoomer.virgilio.it/infinity77
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  




More information about the wxpython-users mailing list