MCPcopy Index your code
hub / github.com/RustPython/RustPython / after_cancel

Method after_cancel

Lib/tkinter/__init__.py:884–899  ·  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

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

Callers

nothing calls this directly

Calls 2

deletecommandMethod · 0.95
callMethod · 0.45

Tested by

no test coverage detected