

def update(self, surface):
    pa = pygame.PixelArray(surface)
    if hasattr(self.machine, 'lights'):
        for light in self.machine.lights:
            if (light.x and pa.y):
                if pa[(light.x, light.y)]:
                    light.on()
                else:
                    light.off()
    if hasattr(self.machine, 'leds'):
        for led in self.machine.leds:
            pass

dataset/ETHPy150Open missionpinball/mpf/mpf/media_controller/display_modules/playfield_lights.py PlayfieldLights.update/VarMisuse@50/58 `light`->`pa`