INNER CODE UNIT · Python

move

codematrixer/hmdriver2 · hmdriver2/_gesture.py:62

    def move(self, x: Union[int, float], y: Union[int, float], interval: float = 0.5) -> '_Gesture':
        """
        Move to specified position.

        Args:
            x: coordinate as a percentage or absolute value.
            y: coordinate as a percentage or absolute value.
            interval (float, optional): Duration of move in seconds. Default is 0.5.

        Returns:
            Gesture: Self instance to allow method chaining.
        """
        self._ensure_started()
        self._add_step(x, y, "move", interval)
        return self

    def pause(self, interval: float = 1) -> '_Gesture':
        """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…