#NEWLINE# def add_folder_location( self ) : #NEWLINE# #INDENT# notesdir = QtGui . QFileDialog . getExistingDirectory ( self , 'Notes Directory' , os . path . expanduser ( '~' ) ) #NEWLINE# try : #NEWLINE# #INDENT# if ( notesdir not in self . conf [ 'conf_notesLocations' ] . keys ( ) ) : #NEWLINE# #INDENT# self . _add_noteslocation_row ( notesdir ) #NEWLINE# #UNINDENT# #UNINDENT# except KeyError : #NEWLINE# #INDENT# self . conf [ 'conf_notesLocations' ] = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _add_noteslocation_row ( notesdir )