(self, name)
Run all the callback functions that have been registered
            for a hook.

            Args:
                name: the name of the hook
Run all the callback functions that have been registered
            for a hook.
Run all the callback functions that have been registered for a hook .
def hook(self, name):
        """ Run all the callback functions that have been registered
            for a hook.

            Args:
                name: the name of the hook
        """
        if name in self.hooks:
            for func in self.hooks[name]:
                func()
def hook ( self , name ) : if name in self . hooks : for func in self . hooks [ name ] : func ( )