def _updateXkeyLight(self, name):
    if ('xkey' in self._sources[name]):
        (devname, row, col) = self._sources[name]['xkey']
        dev = self.dm.getDevice(devname)
        bl = dev.getBacklights()
        bl[(row, col)] = int(self._sources[name]['active'])
        dev.setBacklights(bl)
def _updateXkeyLight(self, name):
    if ('xkey' in self._sources[name]):
        (devname, row, col) = self._sources[name]['xkey']
        dev = self.dm.getDevice(devname)
        bl = dev.getBacklights()
        bl[(row, col)] = int(self._sources[name]['active'])
        dev.setBacklights(bl)