def _launch_error(self, exception, message, fatal=False):
dlg = gtk.MessageDialog(parent=None,
type=gtk.MESSAGE_ERROR, buttons=gtk.BUTTONS_OK, message_format=
'%s\n\n%s' % (message, str(exception)))
dlg.set_title('Error')
dlg.connect('response', gtk.main_quit if fatal else lambda *x: dlg.destroy())
dlg.show_all()
评论列表
文章目录