alert — autopy module for displaying alerts¶
This module contains functions for displaying alerts.
Functions¶
-
autopy.alert.alert(msg: str, title: str=None, default_button: str=None, cancel_button: str=None)¶ -
Displays alert with the given attributes. If
cancel_buttonis not given, only the default button is displayed. ReturnsTrueif the default button was pressed, orFalseif cancelled. Note that the arguments are keywords, and can be passed as named parameters (e.g.,alert(msg='bar', title='foo')).NOTE: Due to limitations in the Win32 API, Windows currently replaces
default_buttonwith ‘OK’ andcancel_button(if given) with ‘Cancel’. This may be fixed in a later release.