MessageDialog

Deprecated since version 4.10: Use AlertDialog instead

class MessageDialog(*args, **kwargs)

Superclasses: Dialog, Window, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager

Constructors:

MessageDialog(**properties)

Methods

class MessageDialog
get_message_area() Widget

Returns the message area of the dialog.

This is the box where the dialog’s primary and secondary labels are packed. You can add your own extra content to that box and it will appear below those labels. See get_content_area for the corresponding function in the parent Dialog.

Deprecated since version 4.10: Use AlertDialog instead

set_markup(str: str) None

Sets the text of the message dialog.

Deprecated since version 4.10: Use AlertDialog instead

Parameters:

str – string with Pango markup

Properties

class MessageDialog
props.buttons: ButtonsType
props.message_area: Widget

The GtkBox that corresponds to the message area of this dialog.

See get_message_area for a detailed description of this area.

props.message_type: MessageType

The type of the message.

props.secondary_text: str

The secondary text of the message dialog.

props.secondary_use_markup: bool

True if the secondary text of the dialog includes Pango markup.

See parse_markup.

props.text: str

The primary text of the message dialog.

If the dialog has a secondary text, this will appear as the title.

props.use_markup: bool

True if the primary text of the dialog includes Pango markup.

See parse_markup.

Fields

class MessageDialog
parent_instance