[wxPython] Key event Position

How can i locate the x, y position of a keypress. Not the mouse cursor position, where the blinking vertical line is inside a textctrl

So far i have only been able to locate the mouse position which is irrelevant to me. I figure i could calculate the position based on text control position and font size with the character locations etc.

I was hoping there was an easier way of doing it, or it was already done. :wink:

Paul

How can i locate the x, y position of a keypress. Not the mouse
cursor position, where the blinking vertical line is inside a textctrl

text.PositionToXY(text.GetInsertionPoint())

···

--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!