(self, setting_name, value)
Set a value to a setting.

        :param str setting_name: The setting to set.
        :param value: The value to set.
Set a value to a setting.
Set a value to a setting .
def set(self, setting_name, value):
        """Set a value to a setting.

        :param str setting_name: The setting to set.
        :param value: The value to set.
        """
        if setting_name not in self._mouse_profile["settings"]:
            raise KeyError(
                "The %s device has no '%s' setting"
                % (
                    self._mouse_profile["name"],
                    setting_name,
                )
            )
        if (
            "value_type" in self._mouse_profile["settings"][setting_name]
            and self._mouse_profile["settings"][setting_name]["value_type"] == "none"
        ):
            return  # Skip settings without values
        self._settings[self._current_profile_name][setting_name] = value
def set ( self , setting_name , value ) : if setting_name not in self . _mouse_profile [ "settings" ] : raise KeyError ( "The %s device has no '%s' setting" % ( self . _mouse_profile [ "name" ] , setting_name , ) ) if ( "value_type" in self . _mouse_profile [ "settings" ] [ setting_name ] and self . _mouse_profile [ "settings" ] [ setting_name ] [ "value_type" ] == "none" ) : return # Skip settings without values self . _settings [ self . _current_profile_name ] [ setting_name ] = value