(self, *args, duration=500, **kwargs)
@duration
          Interval after which an .on_idle() call will be made, expressed in
          milliseconds.
def __init__(self, *args, duration=500, **kwargs):
        """
        @duration
          Interval after which an .on_idle() call will be made, expressed in
          milliseconds.
        """

        # TODO: Maybe it's more efficient to collect .on_idle() functions and
        # manage edits globally, then call collected functions when idle.
        self.edits = defaultdict(int)
        self.lock = threading.Lock()

        # Expressed in milliseconds.
        self.duration = duration
        super().__init__(*args, **kwargs)
def __init__ ( self , * args , duration = 500 , * * kwargs ) : # TODO: Maybe it's more efficient to collect .on_idle() functions and # manage edits globally, then call collected functions when idle. self . edits = defaultdict ( int ) self . lock = threading . Lock ( ) # Expressed in milliseconds. self . duration = duration super ( ) . __init__ ( * args , * * kwargs )