def connect(self, element, event, func, *args):
        """Connect a function + args to signal event on an element.

        Each event may only be handled by one callback in this implementation.
        """
        assert (element, event) not in self._ids
        self._ids[(element, event)] = element.connect(event, func, *args)
dataset/ETHPy150Open mopidy/mopidy/mopidy/audio/utils.py/Signals.connect/original