wxPython Grid XY Coordinates question

Kiran Kiran.Karra at gmail.com
Fri Jul 14 11:37:55 EDT 2006


Hello All,
  I am writing an app in wxPython using a grid.  I need to be able to
recognize what cell in the grid the user is hovering over with the
mouse.  How to do this?
  I tried XYToCell(x, y), but that doesnt work properly because it
thinks that mouse position (0, 0) is the first cell in the grid, and
then goes from there, so if i move the grid to a differernt area on the
screen, the XYToCell is messed up in what it returns.

Any ideas on how to get this to work or any other way?

thanks,
Kiran




More information about the Python-list mailing list