Example #1
0
 def save_settings(self):
     """Saves the current settings to persistent storage."""
     self.brushmanager.save_brushes_for_devices()
     self.brushmanager.save_brush_history()
     self.filehandler.save_scratchpad(self.scratchpad_filename)
     settingspath = join(self.user_confpath, 'settings.json')
     jsonstr = helpers.json_dumps(self.preferences)
     with open(settingspath, 'w') as f:
         f.write(jsonstr)
Example #2
0
 def save_settings(self):
     """Saves the current settings to persistent storage."""
     self.brushmanager.save_brushes_for_devices()
     self.brushmanager.save_brush_history()
     self.filehandler.save_scratchpad(self.scratchpad_filename)
     settingspath = join(self.user_confpath, 'settings.json')
     jsonstr = helpers.json_dumps(self.preferences)
     with open(settingspath, 'w') as f:
         f.write(jsonstr)
Example #3
0
 def save_config():
     settingspath = join(self.confpath, 'settings.json')
     jsonstr = helpers.json_dumps(self.preferences)
     f = open(settingspath, 'w')
     f.write(jsonstr)
     f.close()