コード例 #1
0
ファイル: application.py プロジェクト: ShadowKyogre/mypaint
 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)
コード例 #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)
コード例 #3
0
ファイル: application.py プロジェクト: dvberkel/mypaint
 def save_config():
     settingspath = join(self.confpath, 'settings.json')
     jsonstr = helpers.json_dumps(self.preferences)
     f = open(settingspath, 'w')
     f.write(jsonstr)
     f.close()