scriptor.dialog
Dialogs API.
This module provides several dialogs to be used for several user-interactions.
alert: Show a modal message to be confirmed
confirm: Show a Yes-No or Yes-No-Cancel dialog
input: Input dialog with various types
select: Select choice of several options, with multi-selection option.
Module Contents
Functions
|
|
|
Provide a message and stop program execution until accepted. |
|
Provide a Yes-No or Yes-No-Cancel-dialog. |
|
Provide a dialog asking for some value. |
|
Provide a input asking for datetime value. |
|
|
|
|
|
|
|
|
|
|
|
- async scriptor.dialog.wait()
- async scriptor.dialog.alert(text: str, image: str = '') None
Provide a message and stop program execution until accepted.
- async scriptor.dialog.confirm(text: str, *, title: str = 'Confirm', allow_cancel: bool = False, image: str = '') bool | None
Provide a Yes-No or Yes-No-Cancel-dialog.
- async scriptor.dialog.input(text: str, *, title: str = 'Input', type: str = 'input', use_time: bool = False, empty: bool = False, image: str = '') datetime.datetime | str | float | int
Provide a dialog asking for some value.
- async scriptor.dialog.input_date(*args, **kwargs) datetime.datetime
Provide a input asking for datetime value.
- async scriptor.dialog.input_number(*args, **kwargs) int | float
- async scriptor.dialog.input_string(*args, **kwargs) str
- async scriptor.dialog.input_text(*args, **kwargs) str