MCPcopy Index your code
hub / github.com/python/cpython / after_cancel

Method after_cancel

Lib/tkinter/__init__.py:902–917  ·  view source on GitHub ↗

Cancel scheduling of function identified with ID. Identifier returned by after or after_idle must be given as first parameter.

(self, id)

Source from the content-addressed store, hash-verified

900 return self.after('idle', func, *args, **kw)
901
902 def after_cancel(self, id):
903 """Cancel scheduling of function identified with ID.
904
905 Identifier returned by after or after_idle must be
906 given as first parameter.
907 """
908 if not id:
909 raise ValueError('id must be a valid identifier returned from '
910 'after or after_idle')
911 try:
912 data = self.tk.call('after', 'info', id)
913 script = self.tk.splitlist(data)[0]
914 self.deletecommand(script)
915 except TclError:
916 pass
917 self.tk.call('after', 'cancel', id)
918
919 def after_info(self, id=None):
920 """Return information about existing event handlers.

Callers 15

test_afterMethod · 0.80
test_after_idleMethod · 0.80
test_after_cancelMethod · 0.80
test_after_infoMethod · 0.80
kill_subprocessMethod · 0.80
__del__Method · 0.80
checkhide_eventMethod · 0.80
text_auto_scrollMethod · 0.80
b1_enter_handlerMethod · 0.80
closeMethod · 0.80
toggle_colorize_eventMethod · 0.80

Calls 3

deletecommandMethod · 0.95
splitlistMethod · 0.80
callMethod · 0.45

Tested by 14

test_afterMethod · 0.64
test_after_idleMethod · 0.64
test_after_cancelMethod · 0.64
test_after_infoMethod · 0.64
test_notify_rangeMethod · 0.64
test_recolorizeMethod · 0.64
tearDownClassMethod · 0.64
tearDownClassMethod · 0.64
tearDownClassMethod · 0.64
tearDownClassMethod · 0.64
tearDownClassMethod · 0.64
tearDownClassMethod · 0.64