def METHOD_NAME(self, event):
    for component in self.component.components:
        if (isinstance(component, CanvasButton)
                and component.is_in(event.x, event.y)):
            component.state = "down"
            component.request_redraw()
            component.perform()
            break