Revision: 6352 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6352&view=rev Author: ryanmay Date: 2008-10-29 20:28:57 +0000 (Wed, 29 Oct 2008)
Log Message: ----------- Fix 'extra credit' DraggableRectangle to no longer use Rectangle.xy. (Thanks to Neil Crighton for finding the original problem.) Modified Paths: -------------- trunk/matplotlib/doc/users/event_handling.rst Modified: trunk/matplotlib/doc/users/event_handling.rst =================================================================== --- trunk/matplotlib/doc/users/event_handling.rst 2008-10-29 19:45:18 UTC (rev 6351) +++ trunk/matplotlib/doc/users/event_handling.rst 2008-10-29 20:28:57 UTC (rev 6352) @@ -257,8 +257,8 @@ if DraggableRectangle.lock is not None: return contains, attrd = self.rect.contains(event) if not contains: return - print 'event contains', self.rect.xy - x0, y0 = self.rect.xy + x0, y0 = self.rect.get_x(), self.rect.get_y() + print 'event contains', x0, y0 self.press = x0, y0, event.xdata, event.ydata DraggableRectangle.lock = self This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins