import pyautogui as gi
a=gi.confirm(text='确认还是取消?',title='请选择',buttons=['OK','Cancel'])
print(a)
if a=="OK":
print(已确认)
else:
print(已取消)
python pyautogui中对话框设置
最新推荐文章于 2024-08-01 15:47:20 发布
import pyautogui as gi
a=gi.confirm(text='确认还是取消?',title='请选择',buttons=['OK','Cancel'])
print(a)
if a=="OK":
print(已确认)
else:
print(已取消)