#NEWLINE# def fireEvent( self , eventName , arguments ) : #NEWLINE# #INDENT# for listener in self . listeners : #NEWLINE# #INDENT# if hasattr ( listener , eventName ) : #NEWLINE# #INDENT# eventMethod = getattr ( listener , eventName ) #NEWLINE# arguments . insert ( 0 , self ) #NEWLINE# DeferredHandler . add ( eventMethod , arguments )