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_button
is not given, only the default button is displayed. ReturnsTrue
if the default button was pressed, orFalse
if 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_button
with ‘OK’ andcancel_button
(if given) with ‘Cancel’. This may be fixed in a later release.