def _propsetcursorx(self, value):
        """
        Set the cursor's x coordinate.

        value - The new x coordinate. A negative value can be used to specify
        the x coordinate in terms of its relative distance to the right border
        of the surface. No operation will be performed if value is greater than
        or equal to the width of the surface.
        """
        x = int(value)
        if x >= self._width or x <= -self._width:
            return # no-op

        if x < 0:
            x = self._width + x

        self._cursorx = x
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseSurface._propsetcursorx/original