def cancel(self, function):
if function in self._callback.keys():<EOL><INDENT>callback_id = self._callback[function][<NUM_LIT:0>]<EOL>self.tk.after_cancel(callback_id)<EOL>self._callback.pop(function)<EOL><DEDENT>else:<EOL><INDENT>utils.error_format("<STR_LIT>")<EOL><DEDENT>
Cancel the scheduled `function` calls.