pyface.message_dialog module¶
The implementation of a dialog that displays a message.
- pyface.message_dialog.information(parent, message, title='Information', detail='', informative='', text_format='auto')[source]¶
Convenience method to show an information message dialog.
- Parameters
parent (toolkit control or None) – The toolkit control that should be the parent of the dialog.
message (str) – The text of the message to display.
title (str) – The text of the dialog title.
detail (str) – Further details about the message (displayed when the user clicks “Show details”).
informative (str) – Explanatory text to display along with the message.
text_format (str) – Specifies what text format to use in the resulting message dialog. One of “auto”, “plain”, or “rich”. Only supported on the qt backend.
- pyface.message_dialog.warning(parent, message, title='Warning', detail='', informative='', text_format='auto')[source]¶
Convenience function to show a warning message dialog.
- Parameters
parent (toolkit control or None) – The toolkit control that should be the parent of the dialog.
message (str) – The text of the message to display.
title (str) – The text of the dialog title.
detail (str) – Further details about the message (displayed when the user clicks “Show details”).
informative (str) – Explanatory text to display along with the message.
text_format (str) – Specifies what text format to use in the resulting message dialog. One of “auto”, “plain”, or “rich”. Only supported on the qt backend.
- pyface.message_dialog.error(parent, message, title='Error', detail='', informative='', text_format='auto')[source]¶
Convenience function to show an error message dialog.
- Parameters
parent (toolkit control or None) – The toolkit control that should be the parent of the dialog.
message (str) – The text of the message to display.
title (str) – The text of the dialog title.
detail (str) – Further details about the message (displayed when the user clicks “Show details”).
informative (str) – Explanatory text to display along with the message.
text_format (str) – Specifies what text format to use in the resulting message dialog. One of “auto”, “plain”, or “rich”. Only supported on the qt backend.