#NEWLINE# def _create_emitter( self , event ) : #NEWLINE# #INDENT# 'Create a method that emits an event of the same name.' #NEWLINE# if ( not hasattr ( self , event ) ) : #NEWLINE# #INDENT# setattr ( self , event , ( lambda * args , **kwargs : self . emit ( event , * args , ** kwargs ) ) )