Logo Search packages:      
Sourcecode: matplotlib version File versions  Download package

def matplotlib::artist::Artist::hitlist (   self,
  event 
) [inherited]

List the children of the artist which contain the mouse event

Definition at line 157 of file artist.py.

00157                            :
        """List the children of the artist which contain the mouse event"""
        import traceback
        L = []
        try:
            hascursor,info = self.contains(event)
            if hascursor:
                L.append(self)
        except:
            traceback.print_exc()
            print "while checking",self.__class__

        if hasattr(self,'get_children'):
            for a in self.get_children(): L.extend(a.hitlist(event))
        return L

    def contains(self,mouseevent):


Generated by  Doxygen 1.6.0   Back to index