Problem with event.getX() in wxVTKRenderWindowInteractor

Hi,

I use wxVTKRenderWindowInteractor in order to visualize a VTK
scene on a wxPython interface. But I have some problems with
this file.
In fact, I can't capture the mouse position when i press a key :((

Here is the code which should do that :

def OnKeyDown(self,event):
        ctrl, shift = event.ControlDown(), event.ShiftDown()
        keycode, keysym = event.GetKeyCode(), None
        key = chr(0)
        if keycode < 256:
            key = chr(keycode)
  
  print "X is:" , event.GetX()

        self._Iren.SetEventInformationFlipY(event.GetX(),
event.GetY(),
                                            ctrl, shift, key, 0,
                                            keysym)
        self._Iren.KeyPressEvent()
        self._Iren.CharEvent()

and I get always the same "X is: -1073756224" printed on my
terminal when i press a key:((

Does anyone have this same problem?
Does anyone have a suggestion about that?

Thanks for your help :wink:

Accédez au courrier électronique de La Poste : www.laposte.net ;
3615 LAPOSTENET (0,34€/mn) ; tél : 08 92 68 13 50 (0,34€/mn)