(self, cb_method, *args)
Run a named callback method against all attached callback classes, in order.
Run a named callback method against all attached callback classes, in order.
Run a named callback method against all attached callback classes in order .
def _run_callbacks(self, cb_method, *args):
        """ 
        Run a named callback method against all attached callback classes, in order.
        """
        if getattr(self, '_callbacks', None) is None:
            # callbacks not ready yet
            return

        for c in self._callbacks:
            attr = getattr(c, cb_method, None)
            if attr:
                attr(*args)
def _run_callbacks ( self , cb_method , * args ) : if getattr ( self , '_callbacks' , None ) is None : # callbacks not ready yet return for c in self . _callbacks : attr = getattr ( c , cb_method , None ) if attr : attr ( * args )