Skip to content

Creating Simple Message Box Alerts

alert.py
import pyautogui
 
pyautogui.alert("Automation completed", title="Done")
confirm.py
import pyautogui
 
ans = pyautogui.confirm("Proceed?", buttons=["Yes", "No"])
print(ans)

pch.coffeeTagline

pch.coffeeCta

pch.feedbackHeading

pch.feedbackSubheading