def __init__(self, **kw):
     ui = cimarron.getEngine()
     msg = kw.pop('message', None) or \
           _("<big><b>You are about to do something strange or time-consuming.</b></big>\n\nAre you sure you want to proceed?")
     yea = kw.pop('yea', None) or _("_Proceed")
     nay = kw.pop('nay', None) or _("_Abort")
     nay = ui.Button(label=nay, stockImage="no", value=0)
     yea = ui.Button(label=yea, stockImage="ok", value=1)
     msg = ui.Label(label=msg, useMarkup=True, lineWrap=True)
     image = ui.Image(stock=("dialog_question", "dialog"))
     
     super(QuestionDialog, self).__init__(msg,
                                          image,
                                          buttons=(nay, yea),
                                          default=yea,
                                          **kw
                                          )
 def __init__(self, message=_("<big><b>You are about to do something dangerous.</b></big>\n\nAre you sure you want to proceed?"), yea=_("_Proceed"), nay=_("_Abort"), **kw):
     ui = cimarron.getEngine()
     nay = ui.Button(label=nay, stockImage="no", value=0)
     yea = ui.Button(label=yea, stockImage="ok", value=1)
     msg = ui.Label(label=message, useMarkup=True, lineWrap=True)
     image = ui.Image(fromStock=("dialog_warning", "dialog"))
     
     super(WarningDialog, self).__init__(message=msg,
                                         image=image,
                                         buttons=(nay, yea),
                                         default=nay,
                                         **kw
                                         )