Popup yes no
popup_yes_no
Display Popup with Yes and No buttons
popup_yes_no(
args = *<1 or N objects>,
button_color = None,
background_color = None,
text_color = None,
auto_close = False,
auto_close_duration = None,
non_blocking = False,
icon = "default_icon.ico",
line_width = None,
font = None,
no_titlebar = False,
grab_anywhere = False,
keep_on_top = False,
location = (None, None)
)
Parameter Descriptions
| Name | Type | Default | Description |
|---|---|---|---|
| *args | Any | Variable number of items to display | |
| auto_close | bool | False | if True window will close itself |
| auto_close_duration | int or float | None | Older versions only accept int. Time in seconds until window will close |
| background_color | str | None | color of background |
| button_color | (str, str) or str | None | button color (foreground, background) |
| font | (str or (str, int[, str]) or None) | None | specifies the font family, size, etc. Tuple or Single string format 'name size styles'. Styles: italic * roman bold normal underline overstrike |
| grab_anywhere | bool | False | If True: can grab anywhere to move the window (Default = False) |
| icon | bytes or str | default_icon.ico | filename or base64 string to be used for the window's icon |
| keep_on_top | bool | False | If True the window will remain above all current windows |
| line_width | int | None | Width of lines in characters |
| location | (int, int) | (None, None) | Location of upper left corner of the window |
| no_titlebar | bool | False | If True no titlebar will be shown |
| non_blocking | bool | False | if True the call will immediately return rather than waiting on user input |
| text_color | str | None | color of the text |
| RETURN | "Yes" or "No" or None | clicked button |