I want to show a
ToolTip on a wxGrid Window. (plattform Windows an Linux )
Depending on the Row where the mouse is, i want to show
different ToolTip Strings (multiple lines) .
which Events do i have to implement ?
any suggestions ?
thanks
I want to show a
ToolTip on a wxGrid Window. (plattform Windows an Linux )
Depending on the Row where the mouse is, i want to show
different ToolTip Strings (multiple lines) .
which Events do i have to implement ?
any suggestions ?
thanks
I want to show a
ToolTip on a wxGrid Window. (plattform Windows an Linux )Depending on the Row where the mouse is, i want to show
different ToolTip Strings (multiple lines) .which Events do i have to implement ?
Something like this maybe, (where self is a grid):
EVT_MOTION(self.GetGridWindow(), self.OnMouseMotion)
def OnMouseMotion(self, evt):
x, y = evt.GetPosition()
row = self.YToRow(y)
col = self.XToCol(x)
self.GetGridWindow().SetToolTipString(
"Here is the ToolTip for (%d, %d)" % (row, col))
evt.Skip()
--
Robin Dunn
Software Craftsman
robin@AllDunn.com Java give you jitters?
http://wxPython.org Relax with wxPython!