def hit_test(self, x, y):
        return (0 < x - self.layout.x < self.layout.width and
                0 < y - self.layout.y < self.layout.height)
dataset/ETHPy150Open ardekantur/pyglet/examples/text_input.py/TextWidget.hit_test/original