Python pyautogui 模块,PAUSE 实例源码

我们从Python开源项目中,提取了以下2个代码示例,用于说明如何使用pyautogui.PAUSE

项目:Grand-Order-Reroller    作者:chaosking121    | 项目源码 | 文件源码
def click_until(*images):
    pyautogui.PAUSE = 0.2 * PAUSE_TIME
    while True:
        for pos, image in enumerate(images):
            if image_is_on_screen(image):
                pyautogui.PAUSE = PAUSE_TIME
                wait(0.5)
                return pos

        for _ in range(10):
            touch(**LEFT_EDGE)
项目:PYSHA    作者:shafaypro    | 项目源码 | 文件源码
def __init__(self):
        pyautogui.PAUSE = 1  # set the pause equals to one
        pyautogui.FAILSAFE = True  # Sets the Fail safe to be one
        display_screensize()  # Printing the size of the display
        self.x, self.y = self.get_positions()
        print(self.x)
        print(self.y)