(self, operation)
Return the function for the operation, or None.

        Deleting the instance attribute unmasks the class attribute.
Return the function for the operation, or None.
Return the function for the operation or None .
def unregister(self, operation):
        '''Return the function for the operation, or None.

        Deleting the instance attribute unmasks the class attribute.
        '''
        if operation in self._operations:
            function = self._operations[operation]
            del self._operations[operation]
            try:
                delattr(self.widget, operation)
            except AttributeError:
                pass
            return function
        else:
            return None
def unregister ( self , operation ) : if operation in self . _operations : function = self . _operations [ operation ] del self . _operations [ operation ] try : delattr ( self . widget , operation ) except AttributeError : pass return function else : return None