#NEWLINE# def find_note_by_title( self , title ) : #NEWLINE# #INDENT# '\n        Find note with given title.\n\n        @returns: Note index if found, -1 otherwise.\n        ' #NEWLINE# idx = ( - 1 ) #NEWLINE# for ( i , nh ) in enumerate ( self . note_headers ) : #NEWLINE# #INDENT# t = nh [ NotesList . TITLE_COL ] #NEWLINE# if ( t == title ) : #NEWLINE# #INDENT# idx = i #NEWLINE# break #NEWLINE# #UNINDENT# #UNINDENT# return title