

def gettopleftpixel(self, cellx, celly=None, onscreen=True):
    'Return a tuple of the pixel coordinates of the cell at cellx, celly.'
    if (type(cellx) in (tuple, list)):
        if (type(celly) == bool):
            onscreen = celly
        (cellx, celly) = cellx
    if (onscreen and (not self.isonscreen(cellx, celly))):
        return (None, None)
    return ((cellx * self._cellwidth), (celly * self._cellheight))

dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py PygcurseSurface.gettopleftpixel/original