class documentation

class MessageDialog(Gtk.MessageDialog): (source)

Known subclasses: zim.gui.exportdialog.ExportDoneDialog

View In Hierarchy

Convenience wrapper for Gtk.MessageDialog, should be used for informational popups without an action.

Note that message dialogs do not have a title.

Method __init__ Constructor.
Method add_extra_button No summary
Method assert_response_ok Undocumented
Method run Runs the dialog and destroys it directly.
def __init__(self, parent, msg): (source)
Constructor.
Parameters
parenteither a parent window or dialog or None
msgthe message either as sring or a 2-tuple of the actual question and a longer explanation as strings. Using a tuple here will give a better looking dialog.
def add_extra_button(self, button, pack_start=True): (source)
Add a button to the action area at the bottom of the dialog. Packs the button in the list of primary buttons (by default these are in the lower right of the dialog)
Parameters
buttonthe Gtk.Button (or other widget)
pack_startif True pack to the left (towards the middle of the dialog), if False pack to the right.
def assert_response_ok(self): (source)

Undocumented

def run(self): (source)
Runs the dialog and destroys it directly.