code: def Set(self, interface_name, property_name, value, *args, **kwargs):
          '''Standard D-Bus API for setting a property value'''
  
          self.log('Set %s.%s%s' % (interface_name,
                                    property_name,
                                    self.format_args((value,))))
  
          try:
              iface_props = self.props[interface_name]
          except KeyError:
              raise dbus.exceptions.DBusException(
                  'no such interface ' + interface_name,
                  name=self.interface + '.UnknownInterface')
  
          if property_name not in iface_props:
              raise dbus.exceptions.DBusException(
                  'no such property ' + property_name,
                  name=self.interface + '.UnknownProperty')
  
          iface_props[property_name] = value
  
          self.EmitSignal('org.freedesktop.DBus.Properties',
                          'PropertiesChanged',
                          'sa{sv}as',
                          [interface_name,
                           dbus.Dictionary({property_name: value}, signature='sv'),
                           dbus.Array([], signature='s')
                          ]f Set(self, interface_name, property_name, value, *args, **kwargs):
          '''Standard D-Bus API for setting a property value'''
  
          self.log('Set %s.%s%s' % (interface_name,
                                    property_name,
                                    self.format_args((value,))))
  
          try:
              iface_props = self.props[interface_name]
          except KeyError:
              raise dbus.exceptions.DBusException(
                  'no such interface ' + interface_name,
                  name=self.interface + '.UnknownInterface')
  
          if property_name not in iface_props:
              raise dbus.exceptions.DBusException(
                  'no such property ' + property_name,
                  name=self.interface + '.UnknownProperty')
  
          iface_props[property_name] = value
  
          self.EmitSignal('org.freedesktop.DBus.Properties',
                          'PropertiesChanged',
                          'sa{sv}as',
                          [interface_name,
                           dbus.Dictionary({property_name: value}, signature='sv'),
                           dbus.Array([], signature='s')
                          ])
docs: Standard D-Bus API for setting a property value