Message dialogs

The following methods provide access to the standard message dialogs.


showAFXDismissableWarningDialog(owner, message, tgt=None, sel=0)

Posts a modal dismissable warning dialog box that has a "Show this dialog next time" check button, via which the user can request not to see a specific type of messages in the future. The dialog box has a getCheckButtonState method that can be called to get the state of the check button in the dialog box.

ArgumentTypeDefaultDescription
ownerFXWindow Window over which the dialog box is to be centered.
messageString Text to be displayed in the dialog box.
tgtFXObject NoneMessage target.
selInt0Message ID.


showAFXErrorDialog(owner, message, tgt=None, sel=0)

Shows an error dialog box.

ArgumentTypeDefaultDescription
ownerFXWindow Window over which the dialog box is to be centered.
messageString Text to be displayed in the dialog box.
tgtFXObject NoneMessage target.
selInt0Message ID.


showAFXItemsWarningDialog(owner, topMessage, items, bottomMessage, buttonIds=YES|NO|CANCEL, tgt=None, sel=0)

Shows a modal warning dialog box that has a scrollable list of items and two messages: one placed above and one below the list. .

ArgumentTypeDefaultDescription
ownerFXWindow Window over which the dialog box is to be centered.
topMessageString Text to be displayed on top of the list of items.
itemsString A String containing a comma-separated list of items to be displayed between the topMessage and bottomMessage.
bottomMessageString Text to be displayed below the list of items.
buttonIdsInt YES|NO|CANCELID's of the action area buttons to be created.
tgtFXObject NoneMessage target.
selInt0Message ID.


showAFXWarningDialog(owner, message, buttonIds=YES|NO|CANCEL, tgt=None, sel=0)

Shows a warning dialog box.

ArgumentTypeDefaultDescription
ownerFXWindow Window over which the dialog box is to be centered.
messageString Text to be displayed in the dialog box.
buttonIdsInt YES|NO|CANCELID's of the action area buttons to be created.
tgtFXObject NoneMessage target.
selInt0Message ID.


showAFXInformationDialog(owner, message, tgt=None, sel=0)

Shows an information dialog box.

ArgumentTypeDefaultDescription
ownerFXWindow Window over which the dialog box is to be centered.
messageString Text to be displayed in the dialog box.
tgtFXObject NoneMessage target.
selInt0Message ID.