module StdButtons

This module defines some standard Button subclasses.

Constructors

DefaultButton(title = "OK", style = 'default', action = 'default_action')
CancelButton(title = "Cancel", style = 'cancel', action = 'cancel_action')

These create buttons with the appropriate appearance and behaviour for use as OK or Cancel buttons in a dialog box. By default, when used in a modal dialog, the DefaultButton will dismiss the dialog with the value True, and the CancelButton will dismiss it with the value False. These actions can also be invoked with the Return/Enter and Escape keys. See Dialog and ModalDialog for more information.