19 from .popupwindow
import HtmlPopupWindow
29 grid.GetGridWindow().Bind(wx.EVT_WINDOW_DESTROY, self.
OnGridDestroyOnGridDestroy)
30 grid.GetGridWindow().Bind(wx.EVT_KILL_FOCUS, self.
OnGridFocusLostOnGridFocusLost)
31 grid.GetGridWindow().Bind(wx.EVT_MOTION, self.
OnMouseMotionOnMouseMotion)
32 grid.GetGridWindow().Bind(wx.EVT_TIMER, self.
OnShowToolTipOnShowToolTip)
47 self.
_grid_grid.show_cell_information()
58 content = self.
_grid_grid.get_tooltip_content()
61 self.
_grid_grid.SetFocus()
64 window = wx.Window.FindFocus()
67 rect = window.GetTopLevelParent().GetScreenRect()
68 return rect.Contains(wx.GetMousePosition())
71 cell = event.Row, event.Col
72 if cell == self.
_grid_grid.cell_under_cursor:
77 self.
_tooltip_tooltip.set_content(content)
78 self.
_tooltip_tooltip.show_at(position)
81 x, y = wx.GetMousePosition()