(self, key, value)
Set Setting

            key - setting name
            value

            emits
                settingChanged(key, value)
                prefsChanged()
Set Setting
Set Setting
def put(self, key, value):
        """ Set Setting

            key - setting name
            value

            emits
                settingChanged(key, value)
                prefsChanged()
        """
        self._prefs[key] = value
        with open(self._prefs_file, 'w') as f:
            f.write(json.dumps(self._prefs))

        self.prefsChanged.emit()
def put ( self , key , value ) : self . _prefs [ key ] = value with open ( self . _prefs_file , 'w' ) as f : f . write ( json . dumps ( self . _prefs ) ) self . prefsChanged . emit ( )