def show_error_dialog(self, message, details=None):
dlg = Gtk.MessageDialog(type=Gtk.MessageType.ERROR, buttons=Gtk.ButtonsType.OK,<EOL>message_format=message)<EOL>if details is not None:<EOL><INDENT>dlg.format_secondary_text(details)<EOL><DEDENT>dlg.run()<EOL>dlg.destroy()<EOL>
Convenience method for showing an error dialog.