#NEWLINE# def fire_event( self , event = None ) : #NEWLINE# #INDENT# '\n        This method is what a method uses to fire an event,\n        initiating all registered callbacks\n\n        Args:\n            event: The name of the event to fire.\n\n        Returns True\n        ' #NEWLINE# for e in self . events : #NEWLINE# #INDENT# if ( e [ 'event' ] == event ) : #NEWLINE# #INDENT# if ( type ( e [ 'args' ] ) == type ( [ ] ) ) : #NEWLINE# #INDENT# e [ 'callback' ] ( * e [ 'args' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( type ( e [ 'args' ] ) == type ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) ) : #NEWLINE# #INDENT# e [ 'callback' ] ( ** e [ 'args' ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( e [ 'args' ] == None ) : #NEWLINE# #INDENT# e [ 'callback' ] ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# e [ 'callback' ] ( e [ 'args' ] ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# return True