#NEWLINE# def save( self ) : #NEWLINE# #INDENT# ' Attempts to save the current file, prompting for a path if\n            necessary. Returns whether the file was saved.\n        ' #NEWLINE# editor = editor . window . central_pane . editor #NEWLINE# try : #NEWLINE# #INDENT# editor . save ( ) #NEWLINE# #UNINDENT# except IOError : #NEWLINE# #INDENT# dialog = FileDialog ( parent = self . window . control , action = 'save as' , wildcard = '*.py' ) #NEWLINE# if ( dialog . open ( ) == OK ) : #NEWLINE# #INDENT# editor . save ( dialog . path ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# #UNINDENT# return True