def move_region(self, region: Region, left: int, top: int) -> Region: """ Return a new ``Region`` with an offset from the given region. :param region: the region to move. :param left: amount of pixels to move left/right. :param top: amount of pixels to move up/down. """ return region.move(left, top)
def move_region(self, region: Region, left: int, top: int) -> Region: """ Return a new ``Region`` with an offset from the given region. :param region: The region to move. :param left: Amount of pixels to move left/right. :param top: Amount of pixels to move up/down. Usage examples: .. code-block:: robotframework ${region}= Find Element ocr:"Net Assets" ${moved_region}= Move Region ${region} 500 0 .. code-block:: python region = desktop.find_element('ocr:"Net Assets"') moved_region = desktop.move_region(region, 500, 0) """ return region.move(left, top)