def getnthcellfrom(self, x, y, spaces):
        if x + spaces < self._width:
            return x + spaces, y
        spaces -= x
        y += 1
        return spaces % self._width, y + int(spaces / self._width)
Decorator that catches exceptions and displays an error message
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseSurface.getnthcellfrom--crossover with--dataset/ETHPy150Open glue-viz/glue/glue/utils/qt/decorators.py/messagebox_on_error