def __init__(self, x, y, width, height, score): """Function assign values to the x, y, width, height and score region parameters. :param x: Location x parameter. :param y: Location y parameter. :param width: Region's width. :param height: Region's height. :param score: Similarity with which the pattern is found. """ Region.__init__(self, x, y, width, height) self._width = width self._height = height self._score = score
def __init__(self, screen_id=0): self._screen_id = screen_id self._screen_list = [item for item in mss.mss().monitors[1:]] Region.__init__(self, get_screen_details(self._screen_list, self._screen_id))
def __init__(self, x, y, width, height, score): Region.__init__(self, x, y, width, height) self._width = width self._height = height self._score = score
def __init__(self, screen_id=0): """Function assign value to the '_screen_id' and '_screen_list' Screen parameters.""" self._screen_id = screen_id self._screen_list = [item for item in mss.mss().monitors[1:]] Region.__init__(self, get_screen_details(self._screen_list, self._screen_id))