#NEWLINE# def prepare( self , parent ) : #NEWLINE# #INDENT# ' Finishes setting up the editor.\n        ' #NEWLINE# name = self . extended_name #NEWLINE# if ( name != 'None' ) : #NEWLINE# #INDENT# self . context_object . on_trait_change ( self . _update_editor , name , dispatch = 'ui' ) #NEWLINE# #UNINDENT# self . init ( parent ) #NEWLINE# self . _sync_values ( ) #NEWLINE# self . update_editor ( )