code: def autosave(self):
          
          # make sure we're suppoed to
          if self.button_autosave.is_checked():
  
              # save the file
              self.save_file(_os.path.join(self._autosave_directory, "%04d " % (self.number_file.get_value()) + self._label_path.get_text()))
  
              # increment the counter
              self.number_file.increment()
docs: Autosaves the currently stored data, but only if autosave is checked!