def contains_point(self, x, y):
        """Return True if a given point is within this element's boundaries, otherwise False."""
        if self.left <= x <= self.right and self.top <= y <= self.bottom:
            return True
        else:
            return False
Return True if a given point is within this element's boundaries, otherwise False.
apps/mnist_calc/calcui.py