def _call_wrapper(self, time, function, *args):
<EOL>function(*args)<EOL>if function in self._callback.keys():<EOL><INDENT>repeat = self._callback[function][<NUM_LIT:1>]<EOL>if repeat:<EOL><INDENT>callback_id = self.tk.after(time, self._call_wrapper, time, function, *args)<EOL>self._callback[function][<NUM_LIT:0>] = callback_id<EOL><DEDENT>else:<EOL><INDENT>self._callback.pop(function)<EOL><DEDENT><DEDENT>
Fired by tk.after, gets the callback and either executes the function and cancels or repeats