

def schedule_interval(self, callback, interval, *args, **kwargs):
    '\n        Schedule a function to be called every ``interval`` seconds.\n\n        Specifying an interval of 0 prevents the function from being\n        called again (see :meth:`schedule` to call a function as often as \n        possible).\n\n        The callback function prototype is the same as for :meth:`schedule`.\n\n        This function is a wrapper to ``pyglet.clock.schedule_interval``.\n        It has the additional benefit that all calllbacks are paused and\n        resumed when the node leaves or enters a scene.\n\n        You should not have to schedule things using pyglet by yourself.\n        \n        Arguments:\n            callback (a function): \n                The function to call when the timer elapsed.\n            interval (float): \n                The number of seconds to wait between each call.\n            *args: Variable length argument list passed to the ``callback``.\n            **kwargs: Arbitrary keyword arguments  passed to the ``callback``.\n\n        '
    if self.is_running:
        pyglet.clock.schedule_interval(callback, interval, *args, **kwargs)
    self.scheduled_interval_calls.append((callback, interval, kwargs, kwargs))

dataset/ETHPy150Open los-cocos/cocos/cocos/cocosnode.py CocosNode.schedule_interval/VarMisuse@58/398 `args`->`kwargs`