Revision: 7474
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7474&view=rev
Author:   leejjoon
Date:     2009-08-12 00:04:43 +0000 (Wed, 12 Aug 2009)

Log Message:
-----------
add OffsetBox.contains method

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/offsetbox.py

Modified: trunk/matplotlib/lib/matplotlib/offsetbox.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/offsetbox.py        2009-08-11 19:28:09 UTC 
(rev 7473)
+++ trunk/matplotlib/lib/matplotlib/offsetbox.py        2009-08-12 00:04:43 UTC 
(rev 7474)
@@ -152,6 +152,13 @@
         for c in self.get_children():
             c.set_figure(fig)
 
+    def contains(self, mouseevent):
+        for c in self.get_children():
+            a, b = c.contains(mouseevent)
+            if a:
+                return a, b
+        return False, {}
+    
     def set_offset(self, xy):
         """
         Set the offset


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to