Skip to content

Commit 4c2e06b

Browse files
committed
removed draft timeout/idle from backend bases; using events instead
svn path=/trunk/matplotlib/; revision=5666
1 parent 45cbad3 commit 4c2e06b

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1330,37 +1330,6 @@ def switch_backends(self, FigureCanvasClass):
13301330
newCanvas = FigureCanvasClass(self.figure)
13311331
return newCanvas
13321332

1333-
def mpl_idle_add(self, func, *args, **kwargs):
1334-
"""
1335-
add func to idle handler. The signature of func is::
1336-
1337-
b = func(canvas, *args, **kwargs)
1338-
1339-
The function will continue to be called until func returns
1340-
False or a call to ``canvas.mpl_remove_source(func)``
1341-
1342-
use :meth:`mpl_source_remove` to remove func from the idle handler.
1343-
"""
1344-
raise NotImplementedError('GUI backend must override')
1345-
1346-
def mpl_timeout_add(self, millisec, func, *args, **kwargs):
1347-
"""
1348-
add func to timeout handler; func will be called every
1349-
millisec. The signature of func is::
1350-
1351-
The function will continue to be called until func returns
1352-
False or a call to ``canvas.mpl_remove_source(func)``
1353-
1354-
use :meth:`mpl_source_remove` to remove func from the timeout handler.
1355-
"""
1356-
raise NotImplementedError('GUI backend must override')
1357-
1358-
def mpl_source_remove(self, func):
1359-
"""
1360-
remove func from idle or timeout handler
1361-
"""
1362-
raise NotImplementedError('GUI backend must override')
1363-
13641333
def mpl_connect(self, s, func):
13651334
"""
13661335
Connect event with string *s* to *func*. The signature of *func* is::

0 commit comments

Comments
 (0)