#NEWLINE# def update_editor( self ) : #NEWLINE# #INDENT# ' Updates the editor when the object trait changes externally to the\n            editor.\n        ' #NEWLINE# self . _locked = True #NEWLINE# new_value = self . value #NEWLINE# if isinstance ( new_value , SequenceTypes ) : #NEWLINE# #INDENT# new_value = '\n' . join ( [ line . rstrip ( ) for line in new_value ] ) #NEWLINE# #UNINDENT# control = self . _widget #NEWLINE# if ( control . code . toPlainText ( ) != new_value ) : #NEWLINE# #INDENT# control . code . setPlainText ( new_value ) #NEWLINE# if self . factory . selected_line : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# #UNINDENT# self . _locked = False