Esempio n. 1
0
 def _save_file_set ( self ):
     """ Handles the user clicking the 'save file' button.
     """
     file_name = save_file( self.output_file_name )
     if file_name is not None:
         self.output_file_name = file_name
         self.output_image.save( file_name )
Esempio n. 2
0
    def save_as_file(self):
        """ Saves the text contents of the file to a user specified file name.
        """
        try:
            self.ignore_reload = True
            file_name = save_file(self.file_name, self.file_text)
            if file_name is not None:
                self.file_name = file_name
                self.status = "File saved"
                self.modified = False

                return
        except:
            self.status = "Error occurred saving file"

        self.ignore_reload = False
Esempio n. 3
0
 def _save_file_set ( self ):
     """ Handles the user clicking the 'Save file' button.
     """
     file_name = save_file( self.file_name, self._theme_file )
     if file_name is not None:
         self.file_name = file_name