Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42779f1

Browse files
committed
Prevent double start of timer. Thanks to Michiel de Hoon for finding the problem.
svn path=/trunk/matplotlib/; revision=8905
1 parent92c5ebb commit42779f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎lib/matplotlib/backends/backend_tkagg.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@ class TimerTk(TimerBase):
101101
def__init__(self,parent,*args,**kwargs):
102102
TimerBase.__init__(self,*args,**kwargs)
103103
self.parent=parent
104+
self._timer=None
104105

105106
def_timer_start(self):
107+
self._timer_stop()
106108
self._timer=self.parent.after(self._interval,self._on_timer)
107109

108110
def_timer_stop(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp