Did I find the right examples for you? yes no

All Samples(59)  |  Call(58)  |  Derive(0)  |  Import(1)

        def set(key, value):
    settings[key] = value
        


src/g/r/gramps-3.4.2/src/gui/viewmanager.py   Gramps(Download)
                                                           plugin_dict["z"]),
                                                          plugin_dict))
                config.set("behavior.last-check-for-updates",
                           datetime.date.today().strftime("%Y/%m/%d"))
                count += 1
        # save the current window size
        (width, height) = self.window.get_size()
        config.set('interface.width', width)
        config.set('interface.height', height)
        config.save()
        if obj.get_active():
            self.ebox.show()
            config.set('interface.view', True)
            self.show_navigator = True
        else:
            self.ebox.hide()
            config.set('interface.view', False)

src/c/e/cexbot-0.0.14a3/cexbot/command_utils.py   cexbot(Download)
      return config.test_auth()
    elif args.name and args.value:
      v = config.set(args.name, args.value)
      return config.cprint(args.name)
    elif args.name:

src/c/e/cexbot-HEAD/cexbot/command_utils.py   cexbot(Download)
      return config.test_auth()
    elif args.name and args.value:
      v = config.set(args.name, args.value)
      return config.cprint(args.name)
    elif args.name:

src/g/r/gramps-3.4.2/src/gui/configure.py   Gramps(Download)
        the_iter = obj.get_active_iter()
        new_idx = the_list.get_value(the_iter, COL_NUM)
        config.set('preferences.name-format', new_idx)
        _nd.set_default_format(new_idx)
        self.uistate.emit('nameformat-changed')
        obox.set_active(config.get('behavior.surname-guessing'))
        obox.connect('changed', 
                     lambda obj: config.set('behavior.surname-guessing', 
                                            obj.get_active()))
        lwidget = BasicLabel("%s: " % _('Surname guessing'))
        obox.set_active(config.get('preferences.family-relation-type'))
        obox.connect('changed', 
                     lambda obj: config.set('preferences.family-relation-type',
                                            obj.get_active()))
        lwidget = BasicLabel("%s: " % _('Default family relationship'))
            obox.set_active(1)
        obox.connect('changed', 
                     lambda obj: config.set('interface.statusbar', 2*obj.get_active()))
        lwidget = BasicLabel("%s: " % _('Status bar'))
        table.attach(lwidget, 0, 1, row, row+1, yoptions=0)
    def check_for_type_changed(self, obj):
        active = obj.get_active()
        if active == 0:  # update
            config.set('behavior.check-for-update-types', ["update"])
        elif active == 1:  # update

src/g/r/gramps-3.4.2/src/cli/argparser.py   Gramps(Download)
                            else:
                                new_value = safe_eval(new_value)
                            config.set(setting_name, new_value)
                            print >> sys.stderr, "    New Gramps config " \
                                            "setting: %s:%s" % (

src/g/r/gramps-3.4.2/src/ManagedWindow.py   Gramps(Download)
        if self.width_key is not None:
            (width, height) = self.window.get_size()
            config.set(self.width_key, width)
            config.set(self.height_key, height)
            config.save()

src/g/r/gramps-3.4.2/src/gen/display/name.py   Gramps(Download)
            if self.default_format == 0:
                self.default_format = Name.LNFN
                config.set('preferences.name-format', self.default_format)
            #if only one surname, see if pa/ma should be considered as 
            # 'the' surname.

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/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/QuestionDialog.py   Gramps(Download)
            self.task2()
 
        config.set('interface.dont-ask', self.dontask.get_active())
        self.top.destroy()
 
    def update_checkbox(self, obj, constant):
        config.set(constant, obj.get_active())
        config.save()
 

  1 | 2 | 3  Next