class documentation
class ACMEDialog(ModalScreen): (source)
Constructor: ACMEDialog(message, buttonOK, buttonCancel)
A simple dialog for the ACME text UI.
| Method | __init__ |
Initialize the dialog. |
| Method | action |
Close the dialog. |
| Method | compose |
Build the dialog. |
| Method | on |
Handle the button press event. |
| Constant | BINDINGS |
Key bindings for the dialog. |
| Instance Variable | button |
The label of the Cancel button. |
| Instance Variable | button |
The label of the OK button. |
| Instance Variable | message |
The message to display. |
| Instance Variable | width |
The width of the dialog. |
def __init__(self, message:
str = 'Really?', buttonOK: str = 'OK', buttonCancel: str = 'Cancel'):
(source)
¶
Initialize the dialog.
| Parameters | |
message:str | The message to display. |
buttonstr | The label of the OK button. |
buttonstr | The label of the Cancel button. |