#NEWLINE# @ classmethod #NEWLINE# def events( cls ) : #NEWLINE# #INDENT# 'Returns a list of all events this Component listens to' #NEWLINE# handlers = ( getattr ( cls , k ) . names for k in dir ( cls ) if getattr ( getattr ( name , k ) , 'handler' , False ) ) #NEWLINE# return list ( set ( ( name for name in chain ( * handlers ) if ( not name . startswith ( '_' ) ) ) ) )