def _save_settings(self):
if self._autosettings_path == None: return<EOL>gui_settings_dir = _os.path.join(_cwd, '<STR_LIT>')<EOL>if not _os.path.exists(gui_settings_dir): _os.mkdir(gui_settings_dir)<EOL>path = _os.path.join(gui_settings_dir, self._autosettings_path)<EOL>settings = _g.QtCore.QSettings(path, _g.QtCore.QSettings.IniFormat)<EOL>settings.clear()<EOL>if hasattr_safe(self._window, "<STR_LIT>"):<EOL><INDENT>settings.setValue('<STR_LIT>',self._window.saveState())<EOL><DEDENT>settings.setValue('<STR_LIT>', self._window.saveGeometry())<EOL>
Saves all the parameters to a text file.