def FriendlyExceptionDlg(message):
 class w3af_message_dialog(gtk.MessageDialog, ):
  def dialog_response_cb(self, widget, response_id):
   '\n            http://faq.pygtk.org/index.py?req=show&file=faq10.017.htp\n            '
   self.destroy()
  def dialog_run(self):
   '\n            http://faq.pygtk.org/index.py?req=show&file=faq10.017.htp\n            '
   if (not self.modal):
    self.set_modal(True)
   self.connect('response', self.dialog_response_cb)
   self.show()
 dlg = w3af_message_dialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_OK, message)
 dlg.set_icon_from_file(W3AF_ICON)
 dlg.set_title('Error')
 dlg.dialog_run()
 return

def FriendlyExceptionDlg ( message ) : class w3af_message_dialog ( gtk . MessageDialog , ) : def dialog_response_cb ( self , widget , response_id ) : self . destroy ( ) def dialog_run ( self ) : if ( not self . modal ) : self . set_modal ( True ) self . connect ( 'response' , self . dialog_response_cb ) self . show ( ) dlg = w3af_message_dialog ( None , gtk . DIALOG_MODAL , gtk . MESSAGE_WARNING , gtk . BUTTONS_OK , message ) dlg . set_icon_from_file ( W3AF_ICON ) dlg . set_title ( 'Error' ) dlg . dialog_run ( ) return
creates the dialog showing the message .