MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / after_cancel

Method after_cancel

tools/python-3.11.9-amd64/Lib/tkinter/__init__.py:883–898  ·  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

881 return self.after('idle', func, *args)
882
883 def after_cancel(self, id):
884 """Cancel scheduling of function identified with ID.
885
886 Identifier returned by after or after_idle must be
887 given as first parameter.
888 """
889 if not id:
890 raise ValueError('id must be a valid identifier returned from '
891 'after or after_idle')
892 try:
893 data = self.tk.call('after', 'info', id)
894 script = self.tk.splitlist(data)[0]
895 self.deletecommand(script)
896 except TclError:
897 pass
898 self.tk.call('after', 'cancel', id)
899
900 def bell(self, displayof=0):
901 """Ring a display's bell."""

Callers 15

test_afterMethod · 0.80
test_after_idleMethod · 0.80
test_after_cancelMethod · 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
unscheduleMethod · 0.80

Calls 2

deletecommandMethod · 0.95
callMethod · 0.80

Tested by 13

test_afterMethod · 0.64
test_after_idleMethod · 0.64
test_after_cancelMethod · 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
tearDownClassMethod · 0.64