Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
 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))
Ejemplo n.º 3
0
Archivo: match.py Proyecto: wizofe/iris
 def __init__(self, x, y, width, height, score):
     Region.__init__(self, x, y, width, height)
     self._width = width
     self._height = height
     self._score = score
Ejemplo n.º 4
0
 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))