[wxPython-users] Capturing mouse position in wx.Grid
Raffaello Barella
barbarossa.platz at gmail.com
Thu Feb 28 11:15:17 PST 2008
I think you should bind the event to the grid, not to the cell. Then with
GetPosition() you check if the mouse is moving over the cell, and in case
you fire the tooltip.
2008/2/28, Mike Driscoll <mdriscoll at co.marshall.ia.us>:
>
> Hi,
>
> I have a wx.grid.Grid object in one of my applications. I have had a
> feature request to have cells in one column display a tooltip when moused
> over. How do I bind EVT_MOTION to the cells in the grid? I've tried
> binding to the panel, which is the parent of the grid and to the grid
> object itself, but both of those don't work. If you know of a way to do
> this, please let me know.
>
> I am using wxPython 2.8.7.1, Python 2.4 on Windows XP. Thanks!
>
> Mike Driscoll
> Applications Specialist
> MCIS - Technology Center
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wxPython-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wxPython-users-help at lists.wxwidgets.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.wxwidgets.org/pipermail/wxpython-users/attachments/200802=
28/5e9720b3/attachment.htm
More information about the wxpython-users
mailing list