#NEWLINE# def _post_event_handler( self , next_handler , ev , data ) : #NEWLINE# #INDENT# while True : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( dispatcher , event , args ) = self . _post_event_queue . get ( False ) #NEWLINE# #UNINDENT# except Queue . Empty : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# dispatcher . dispatch_event ( args , * args ) #NEWLINE# #UNINDENT# return constants . noErr