(self, name, func)
Remove a callback from a hook.
Remove a callback from a hook.
Remove a callback from a hook .
def remove_hook(self, name, func):
        ''' Remove a callback from a hook. '''
        if name in self._hooks and func in self._hooks[name]:
            self._hooks[name].remove(func)
            return True
def remove_hook ( self , name , func ) : if name in self . _hooks and func in self . _hooks [ name ] : self . _hooks [ name ] . remove ( func ) return True