(self, event)
Create a `QToolTip` for the point hovered by the mouse
Create a `QToolTip` for the point hovered by the mouse
Create a QToolTip for the point hovered by the mouse
def help_event(self, event):
        """
        Create a `QToolTip` for the point hovered by the mouse
        """
        if self.scatterplot_item is None:
            return False
        act_pos = self.scatterplot_item.mapFromScene(event.scenePos())
        point_data = [p.data() for p in self.scatterplot_item.pointsAt(act_pos)]
        text = self.master.get_tooltip(point_data)
        if text:
            QToolTip.showText(event.screenPos(), text, widget=self.plot_widget)
            return True
        else:
            return False
def help_event ( self , event ) : if self . scatterplot_item is None : return False act_pos = self . scatterplot_item . mapFromScene ( event . scenePos ( ) ) point_data = [ p . data ( ) for p in self . scatterplot_item . pointsAt ( act_pos ) ] text = self . master . get_tooltip ( point_data ) if text : QToolTip . showText ( event . screenPos ( ) , text , widget = self . plot_widget ) return True else : return False