code: def setDefault(self, key, value):
          
          if value is None:
              self._defaults.pop(key, None)
          else:
              self._defaults[key] = value
docs: Sets the default for a given key to the value.
          
          :param      key | <str>
                      value | <str> || <XResourceManager>