(self, *args, **kwargs)
Push a level onto the top of the handler stack, then attach zero or
        more event handlers.

        If keyword arguments are given, they name the event type to attach.
        Otherwise, a callable's `__name__` attribute will be used.  Any other
        object may also be specified, in which case it will be searched for
        callables with event names.
Push a level onto the top of the handler stack, then attach zero or
        more event handlers.
Push a level onto the top of the handler stack then attach zero or more event handlers .
def push_handlers(self, *args, **kwargs):
        '''Push a level onto the top of the handler stack, then attach zero or
        more event handlers.

        If keyword arguments are given, they name the event type to attach.
        Otherwise, a callable's `__name__` attribute will be used.  Any other
        object may also be specified, in which case it will be searched for
        callables with event names.
        '''
        # Create event stack if necessary
        if type(self._event_stack) is tuple:
            self._event_stack = []

        # Place dict full of new handlers at beginning of stack
        self._event_stack.insert(0, {})
        self.set_handlers(*args, **kwargs)
def push_handlers ( self , * args , * * kwargs ) : # Create event stack if necessary if type ( self . _event_stack ) is tuple : self . _event_stack = [ ] # Place dict full of new handlers at beginning of stack self . _event_stack . insert ( 0 , { } ) self . set_handlers ( * args , * * kwargs )