Did I find the right examples for you? yes no

All Samples(19)  |  Call(19)  |  Derive(0)  |  Import(0)

        def save():
    LOGGER.info('Saving config file %s...', CONFIG_FILE)
    with open(CONFIG_FILE, 'w') as file:
        PARSER.write(file)
        


src/g/r/gramps-3.4.2/src/gui/viewmanager.py   Gramps(Download)
        config.set('interface.width', width)
        config.set('interface.height', height)
        config.save()
        gtk.main_quit()
 
            config.set('interface.view', False)
            self.show_navigator = False
        config.save()
 
    def toolbar_toggle(self, obj):
            self.toolbar.hide()
            config.set('interface.toolbar-on', False)
        config.save()
 
    def fullscreen_toggle(self, obj):
            self.window.unfullscreen()
            config.set('interface.fullscreen', False)
        config.save()
 
    def get_views(self):
        last_views[cat_num] = view_id
        config.set('preferences.last-views', last_views)
        config.save()
 
        self.navigator.view_changed(cat_num, view_num)

src/n/v/nvda-HEAD/source/gui/settingsDialogs.py   nvda(Download)
				_("Language Configuration Change"),wx.OK|wx.CANCEL|wx.ICON_WARNING,self
			)==wx.OK:
				config.save()
				queueHandler.queueFunction(queueHandler.eventQueue,core.restart)
		super(GeneralSettingsDialog, self).onOk(evt)

src/g/r/gramps-3.4.2/src/gui/pluginmanager.py   Gramps(Download)
        self.__hidden_plugins.add(id)
        config.set('plugin.hiddenplugins', list(self.__hidden_plugins))
        config.save()
        self.__hidden_changed()
 
        self.__hidden_plugins.remove(id)
        config.set('plugin.hiddenplugins', list(self.__hidden_plugins))
        config.save()
        self.__hidden_changed()
 

src/g/r/gramps-3.4.2/src/ManagedWindow.py   Gramps(Download)
            config.set(self.width_key, width)
            config.set(self.height_key, height)
            config.save()
 
    def track_ref_for_deletion(self, ref):

src/g/r/gramps-3.4.2/src/QuestionDialog.py   Gramps(Download)
    def update_checkbox(self, obj, constant):
        config.set(constant, obj.get_active())
        config.save()
 

src/g/r/gramps-3.4.2/src/gui/editors/addmedia.py   Gramps(Download)
    def _cleanup_on_exit(self):
        config.set('behavior.addmedia-image-dir', self.last_directory)
        config.set('behavior.addmedia-relative-path', self.relative_path)
        config.save()
 

src/g/r/gramps-3.4.2/src/plugins/lib/libplaceview.py   Gramps(Download)
            label.show()
        config.set('interface.mapservice', mapkey)
        config.save()
 
    def mapservice_label(self):

src/n/v/nvda-HEAD/source/gui/__init__.py   nvda(Download)
			return
		try:
			config.save()
			queueHandler.queueFunction(queueHandler.eventQueue,ui.message,_("Configuration saved"))
		except:
	def onOk(self, evt):
		config.conf["keyboard"]["useCapsLockAsNVDAModifierKey"] = self.capsAsNVDAModifierCheckBox.IsChecked()
		config.conf["general"]["showWelcomeDialogAtStartup"] = self.showWelcomeDialogAtStartupCheckBox.IsChecked()
		try:
			config.save()
	def onOk(self, evt):
		globalVars.configFileError=None
		config.save()
		self.Close()
 

src/g/r/gramps-3.4.2/src/gui/plug/_windows.py   Gramps(Download)
                                                          rating, contact, download, url])
        pm.close()
        config.save()
 
    def __get_all_addons(self, obj):

src/g/d/gdrsync.py-HEAD/driveutils.py   gdrsync.py(Download)
    if utils.firstNonNone(save, False):
        config.set('refreshToken', refreshToken)
        config.save()
 
    return credentials

  1 | 2  Next