Returns the message area of the dialog.
Sets the text of the message dialog.
Adds an activatable widget to the action area of a gtk.dialog.Dialog.
Adds a button with the given text.
Returns the content area of dialog.
Returns the header bar of dialog.
Gets the response id of a widget in the action area of a dialog.
Gets the widget button that uses the given response ID in the action area of a dialog.
Emits the ::response signal with the given response ID.
Sets the default widget for the dialog based on the response ID.
A convenient way to sensitize/desensitize dialog buttons.
Connect to Close signal.
Connect to Response signal.
Deprecated: Use gtk.alert_dialog.AlertDialog instead
gtk.message_dialog.MessageDialog presents a dialog with some message text.
It’s simply a convenience widget; you could construct the equivalent of gtk.message_dialog.MessageDialog from gtk.dialog.Dialog without too much effort, but gtk.message_dialog.MessageDialog saves typing.
The easiest way to do a modal message dialog is to use the gtk.types.DialogFlags.Modal flag, which will call gtk.window.Window.setModal internally. The dialog will prevent interaction with the parent window until it's hidden or destroyed. You can use the gtk.dialog.Dialog.response signal to know when the user dismissed the dialog.
An example for using a modal dialog:
You might do a non-modal gtk.message_dialog.MessageDialog simply by omitting the gtk.types.DialogFlags.Modal flag:
GtkMessageDialog as GtkBuildable
The gtk.message_dialog.MessageDialog implementation of the gtk.buildable.Buildable interface exposes the message area as an internal child with the name “message_area”.