Revision: 8905
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=8905&view=rev
Author:   ryanmay
Date:     2011-01-12 03:18:02 +0000 (Wed, 12 Jan 2011)

Log Message:
-----------
Prevent double start of timer. Thanks to Michiel de Hoon for finding the 
problem.

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

Modified: trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py   2011-01-12 
01:16:17 UTC (rev 8904)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_tkagg.py   2011-01-12 
03:18:02 UTC (rev 8905)
@@ -101,8 +101,10 @@
     def __init__(self, parent, *args, **kwargs):
         TimerBase.__init__(self, *args, **kwargs)
         self.parent = parent
+        self._timer = None
 
     def _timer_start(self):
+        self._timer_stop()
         self._timer = self.parent.after(self._interval, self._on_timer)
 
     def _timer_stop(self):


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

------------------------------------------------------------------------------
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Matplotlib-checkins mailing list
Matplotlib-checkins@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to