自动图形用户界面Xlib.error.BadValu

2024-04-26 06:41:55 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用pyautogui库,而且它还在工作……由于某种原因,在我重新安装了我的Ubuntu系统之后,我无法使用它。你知道吗

我在下面显示代码,只是从文档中复制了几行。 关于错误的唯一信息,在我发现的图片中显示的是这个链接提到了“BadValue错误”,我不太明白(100和200在范围内) https://tronche.com/gui/x/xlib/event-handling/protocol-errors/default-handlers.html

import pyautogui

pyautogui.moveTo(100, 200)
pyautogui.position()
pyautogui.click()
pyautogui.click(100, 200)

非常感谢!你知道吗

Picture with code and execution error


Tags: 代码文档httpscom信息链接ubuntu系统