def gettopleftpixel(self, cellx, celly=None, onscreen=True):
        if type(cellx) in (tuple, list):
            if type(celly) == bool: # shuffling around the parameters
                onscreen = celly
            cellx, celly = cellx
        if onscreen and not self.isonscreen(cellx, celly):
            return (None, None)
        return (cellx * self._cellwidth, celly * self._cellheight)
Return a tuple of the pixel coordinates of the cell at cellx, celly.
dataset/ETHPy150Open asweigart/pygcurse/pygcurse/__init__.py/PygcurseSurface.gettopleftpixel