class dialogs.Modal(object)
Modal
is a mixin class for use by widgets that are used modally. It provides
default responses for the Enter and Escape keys and methods that can be
used as actions for OK and Cancel buttons.
Attributes
- enter_response
- Value with which to dismiss a modal dialog when the Return or Enter key is pressed.
cancel_response- Value with which to dismiss a modal dialog when the Escape key is pressed.
Methods
- ok()
- Dismisses a modal dialog with the value True.
cancel()- Dismisses a modal dialog with the value False.
---