(self, *args, **kwargs)
Attach one or more event handlers to the top level of the handler
        stack.
        
        See `push_handlers` for the accepted argument types.
Attach one or more event handlers to the top level of the handler
        stack.
        
        See `push_handlers` for the accepted argument types.
Attach one or more event handlers to the top level of the handler stack . See push_handlers for the accepted argument types .
def set_handlers(self, *args, **kwargs):
        '''Attach one or more event handlers to the top level of the handler
        stack.
        
        See `push_handlers` for the accepted argument types.
        '''
        # Create event stack if necessary
        if type(self._event_stack) is tuple:
            self._event_stack = [{}]

        for name, handler in self._get_handlers(args, kwargs):
            self.set_handler(name, handler)
def set_handlers ( self , * args , * * kwargs ) : # Create event stack if necessary if type ( self . _event_stack ) is tuple : self . _event_stack = [ { } ] for name , handler in self . _get_handlers ( args , kwargs ) : self . set_handler ( name , handler )