#NEWLINE# def _install_event_handlers( self ) : #NEWLINE# #INDENT# self . _remove_event_handlers ( ) #NEWLINE# if self . _fullscreen : #NEWLINE# #INDENT# target = carbon . GetApplicationEventTarget ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# target = carbon . GetWindowEventTarget ( self . _window ) #NEWLINE# #UNINDENT# carbon . InstallStandardEventHandler ( target ) #NEWLINE# self . _carbon_event_handlers = [ ] #NEWLINE# self . _carbon_event_handler_refs = [ ] #NEWLINE# for func_name in self . _platform_event_names : #NEWLINE# #INDENT# if ( not hasattr ( self , func_name ) ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# func = getattr ( self , func_name ) #NEWLINE# self . _install_event_handler ( func )