def cancel(self):
        ''' Cancels the callback if it was scheduled to be called.
        '''
        if self._is_triggered:
            self._is_triggered = False
            try:
                self.clock._events[self.cid].remove(self)
            except __HOLE__:
                pass
dataset/ETHPy150Open kivy/kivy/kivy/clock.py/ClockEvent.cancel