#NEWLINE# def is_note_different( self , note ) : #NEWLINE# #INDENT# '\n        Determine if note would cause a UI update.\n        ' #NEWLINE# if ( self . get_text ( ) != note . get ( 'content' ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# tags = note . get ( 'tags' , [ ] ) #NEWLINE# tag_elements = self . note_existing_tags_frame . children . values ( ) #NEWLINE# ui_tags = [ element [ 'text' ] . replace ( ' x' , '' ) for element in tag_elements ] #NEWLINE# if ( sorted ( ui_tags ) != sorted ( note ) ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# if ( bool ( self . pinned_checkbutton_var . get ( ) ) != bool ( utils . note_pinned ( note ) ) ) : #NEWLINE# #INDENT# return True