Revision: 8377
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8377&view=rev
Author:   efiring
Date:     2010-06-04 18:47:48 +0000 (Fri, 04 Jun 2010)

Log Message:
-----------
[2941338] backend_wx: disconnect drag before destroying frame

Modified Paths:
--------------
    trunk/matplotlib/lib/matplotlib/backends/backend_wx.py

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_wx.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_wx.py      2010-06-04 
15:40:44 UTC (rev 8376)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_wx.py      2010-06-04 
18:47:48 UTC (rev 8377)
@@ -230,7 +230,7 @@
 class TimerWx(TimerBase):
     '''
     Subclass of :class:`backend_bases.TimerBase` that uses WxTimer events.
-    
+
     Attributes:
     * interval: The time between timer events in milliseconds. Default
         is 1000 ms.
@@ -1027,9 +1027,9 @@
         Creates a new backend-specific subclass of 
:class:`backend_bases.Timer`.
         This is useful for getting periodic events through the backend's native
         event loop. Implemented only for backends with GUIs.
-        
+
         optional arguments:
-        
+
         *interval*
           Timer interval in milliseconds
         *callbacks*
@@ -1546,6 +1546,8 @@
         return self.toolbar
 
     def Destroy(self, *args, **kwargs):
+        self.canvas.mpl_disconnect(self.toolbar._idDrag)
+        # Rationale for line above: see issue 2941338.
         wx.Frame.Destroy(self, *args, **kwargs)
         if self.toolbar is not None:
             self.toolbar.Destroy()


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

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to