|
From: <ry...@us...> - 2011-01-12 03:18:08
|
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.
|