def adjust_monitor(self, handle, action, devices, events):
        """Adjust a previously registered callback.

        See :meth:`AbstractDeviceAdapter.adjust_monitor`.
        """

        events = list(events)
        devices = list(devices)

        for event in events:
            if event not in self.SUPPORTED_EVENTS:
                raise ArgumentError("Unknown event type {} specified".format(event), events=events)

        if action not in self.SUPPORTED_ADJUSTMENTS:
            raise ArgumentError("Unknown adjustment {} specified".format(action))

        action = (handle, action, devices, events)
        if self._currently_notifying:
            self._deferred_adjustments.append(action)
        else:
            self._adjust_monitor_internal(*action)
def adjust_monitor ( self , handle , action , devices , events ) : events = list ( events ) devices = list ( devices ) for event in events : if event not in self . SUPPORTED_EVENTS : raise ArgumentError ( "Unknown event type {} specified" . format ( event ) , events = events ) if action not in self . SUPPORTED_ADJUSTMENTS : raise ArgumentError ( "Unknown adjustment {} specified" . format ( action ) ) action = ( handle , action , devices , events ) if self . _currently_notifying : self . _deferred_adjustments . append ( action ) else : self . _adjust_monitor_internal ( * action )
Adjust a previously registered callback.

        See :meth:`AbstractDeviceAdapter.adjust_monitor`.