absolute cell of a grid

Where did you stick it? Did you use that instead of XYToCell
or after it? I may want to use this myself.

I use it only to calculate the right tooltip, before XYToCell:

class MyGrid(wx.grid.Grid):
   def __init__(...
        self.CellUnderMouse = (-1,-1)
        self.GetGridWindow().Bind(wx.EVT_MOTION, self._updateToolTip)

    def _updateToolTip(self, event):
        (x, y) = self.CalcUnscrolledPosition(event.GetPosition())
        lastCell = self.CellUnderMouse
        self.CellUnderMouse = self.XYToCell(x,y).Get()
        if self.CellUnderMouse <> lastCell:
            (y, x) = self.CellUnderMouse
            text = self.GetTable().GetTooltip(y, x)
            self.GetGridWindow().SetToolTipString(text)
        event.Skip()

HTH

Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.