code: def remove_widget(self, widget):
          
          button = self._buttons.pop(widget)
          self.layout().removeWidget(button)
          button.deleteLater()
docs: Remove the given widget from the tooltip
  
          :param widget: the widget to remove
          :type widget: QtGui.QWidget
          :returns: None
          :rtype: None
          :raises: KeyError