Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/b/l/blueman-HEAD/blueman/bluez/PropertiesBlueZInterface.py   blueman(Download)
            self.get_interface().SetProperty(name, value)
        else:
            return self.__properties_interface.Set(self.get_interface_name(), name, value)
 
    @raise_dbus_error
    def get_properties(self):
        if self.__class__.get_interface_version()[0] < 5:
            return self.get_interface().GetProperties()
        else:
            return self.__properties_interface.GetAll(self.get_interface_name())
    def _unhandle_signal(self, handler, signal, interface, obj_path, **kwargs):
        self.get_bus().remove_signal_receiver(
            handler, signal, self.get_interface_name(), 'org.bluez',
            self.get_object_path(), **kwargs
        )
    def handle_signal(self, handler, signal, **kwargs):
        if signal == 'PropertyChanged':
            if self.__class__.get_interface_version()[0] < 5:
                self._handle_signal(
                    handler, 'PropertyChanged', self.get_interface_name(), self.get_object_path(), **kwargs
                )
            else:
                def wrapper(interface_name, changed_properties, invalidated_properties, **kwargs):
                    if interface_name == self.get_interface_name():