#NEWLINE# def register_watchers( self , type_callback_dict , register_timeout = None ) : #NEWLINE# #INDENT# for ( event_type , callback ) in type_callback_dict . items ( ) : #NEWLINE# #INDENT# self . _push_watchers [ event_type ] . add ( type_callback_dict ) #NEWLINE# #UNINDENT# self . wait_for_response ( RegisterMessage ( event_list = type_callback_dict . keys ( ) ) , timeout = register_timeout )