title: How to remove a tooltip in wxpython?
body: <p>How do I remove a tooltip in wxpython? I know they have an expiry time after which they disappear but I'm struggling to find anything in the docs about purposefully removing them.</p>
  
  <p>In my particular situation, I have a wx.grid which on wx.EVT_MOTION calls a function, that gets the coordinates of the event in the grid, finds out which cell it is (a la grid.CalcUnscrolledPosition() and grid.XYToCell()) and then, provided it is a particular cell, creates a tooltip. Now, in the case there is a tooltip already, I want to remove it if the cursor hovers above a cell that doesn't require a tooltip. I'm struggling to find anything in the documentation. <a href="http://www.wxpython.org/docs/api/wx.ToolTip-class.html" rel="nofollow" title="here">This link</a> has the ToolTip.Enable() function, but that has no result whatsoever. The docs seem to imply that it should enable/disable tooltips globally but nothing happens.</p>
  
  <p>Any ideas?</p>
  
  <p>FYI, Win7, Python 2.7.9, wx 3.0.2.0</p>
  
  <p>EDIT
  Rough structure of relevant code:</p>
  
  <pre><code>self.grid.GetGridWindow().Bind(wx.EVT_MOTION, self.onMouseOver)
  
  ...
  
  def onMouseOver(self, event):
      #get current grid cell
      x, y = self.grid.CalcUnscrolledPosition(event.GetX(), event.GetY())
      coords = self.grid.XYToCell(x,y)
      row = coords[0]
      col = coords[1]
  
      if col in relevanCols:
          event.GetEventObject().SetToolTipString("Hai")
      else:
          self.grid.SetToolTip(None)
  
      event.Skip()
  </code></pre>