(cls)
return list(set(
            name for name in chain(*handlers)
            if not name.startswith("_")
        ))
Returns a list of all events this Component listens to
Returns a list of all events this Component listens to
Returns a list of all events this Component listens to
def events(cls):
        """Returns a list of all events this Component listens to"""

        handlers = (
            getattr(cls, k).names for k in dir(cls)
            if getattr(getattr(cls, k), "handler", False)
        )

        return list(set(
            name for name in chain(*handlers)
            if not name.startswith("_")
        ))
def events ( cls ) : handlers = ( getattr ( cls , k ) . names for k in dir ( cls ) if getattr ( getattr ( cls , k ) , "handler" , False ) ) return list ( set ( name for name in chain ( * handlers ) if not name . startswith ( "_" ) ) )