#### PyKDE - Python Bindings for KDE

# class KMessageBox

Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KMessageBox
Inherits |

### enums

- ButtonCode = {Ok = 1, Cancel = 2, Yes = 3, No = 4, Continue = 5 }
- DialogType = {QuestionYesNo = 1, WarningYesNo = 2, WarningContinueCancel = 3, WarningYesNoCancel = 4, Information = 5, Sorry = 7, Error = 8, QuestionYesNoCancel = 9 }
- OptionsType = {Notify = 1, AllowLink = 2, Dangerous = 4 }
- OptionsType = {Notify = 1, AllowLink = 2 }

### methods

- about (parent, text, caption = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  options | bool | 1

- createKMessageBox (dialog, icon, text, strlist, ask, options, details = QString .null)

  returns (int) checkboxReturn (bool)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dialog | KDialogBase |
  icon | QMessageBox.Icon |
  text | QString |
  strlist | QStringList |
  ask | QString |
  options | int |
  details | QString | QString .null

- createKMessageBox (dialog, icon, text, strlist, ask, options, details = QString .null, notifyType = QMessageBox .Information)

  returns (int) checkboxReturn (bool)
  In versions KDE 3.3.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dialog | KDialogBase |
  icon | QPixmap |
  text | QString |
  strlist | QStringList |
  ask | QString |
  options | int |
  details | QString | QString .null
  notifyType | QMessageBox.Icon | QMessageBox .Information

- detailedError (parent, text, details, caption = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  details | QString |
  caption | QString | QString .null
  options | bool | 1

- detailedErrorWId (parent_id, text, details, caption = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  details | QString |
  caption | QString | QString .null
  options | int | Notify

- detailedSorry (parent, text, details, caption = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  details | QString |
  caption | QString | QString .null
  options | bool | 1

- detailedSorryWId (parent_id, text, details, caption = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  details | QString |
  caption | QString | QString .null
  options | int | Notify

- enableAllMessages ()

  returns nothing
  static

- enableMessage (dontShowAgainName)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dontShowAgainName | QString |

- error (parent, text, caption = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  options | bool | 1

- errorWId (parent_id, text, caption = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  options | int | Notify

- information (parent, text, caption = QString .null, dontShowAgainName = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  dontShowAgainName | QString | QString .null
  options | bool | 1

- informationList (parent, text, strlist, caption = QString .null, dontShowAgainName = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  dontShowAgainName | QString | QString .null
  options | int | Notify

- informationListWId (parent_id, text, strlist, caption = QString .null, dontShowAgainName = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  dontShowAgainName | QString | QString .null
  options | int | Notify

- informationWId (parent_id, text, caption = QString .null, dontShowAgainName = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  dontShowAgainName | QString | QString .null
  options | int | Notify

- messageBox (parent, type, text, caption, buttonYes, buttonNo, dontShowAskAgainName, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString |
  buttonYes | KGuiItem |
  buttonNo | KGuiItem |
  dontShowAskAgainName | QString |
  options | int | Notify

- messageBox (parent, type, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  options | int | Notify

- messageBoxWId (parent_id, type, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontShowAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontShowAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNo (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNoCancel (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNoCancelWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNoList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNoListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- questionYesNoWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- queuedDetailedError (parent, text, details, caption = QString .null)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  details | QString |
  caption | QString | QString .null

- queuedDetailedErrorWId (parent_id, text, details, caption = QString .null)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  details | QString |
  caption | QString | QString .null

- queuedMessageBox (parent, type, text, caption, options)

  returns nothing
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString |
  options | int |

- queuedMessageBox (parent, type, text, caption = QString .null)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString | QString .null

- queuedMessageBoxWId (parent_id, type, text, caption, options)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString |
  options | int |

- queuedMessageBoxWId (parent_id, type, text, caption = QString .null)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  type | KMessageBox.DialogType |
  text | QString |
  caption | QString | QString .null

- saveDontShowAgainContinue (dontShowAgainName)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dontShowAgainName | QString |

- saveDontShowAgainYesNo (dontShowAgainName, result)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dontShowAgainName | QString |
  result | KMessageBox.ButtonCode |

- setDontShowAskAgainConfig (cfg)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  cfg | KConfig |

- shouldBeShownContinue (dontShowAgainName)

  returns (bool)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dontShowAgainName | QString |

- shouldBeShownYesNo (dontShowAgainName)

  returns (bool) result (KMessageBox.ButtonCode)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  dontShowAgainName | QString |

- sorry (parent, text, caption = QString .null, options = 1)

  returns nothing
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  options | bool | 1

- sorryWId (parent_id, text, caption = QString .null, options = Notify)

  returns nothing
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  options | int | Notify

- warningContinueCancel (parent, text, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  buttonContinue | KGuiItem | KStdGuiItem .cont ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningContinueCancelList (parent, text, strlist, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.1.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonContinue | KGuiItem | KStdGuiItem .cont ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningContinueCancelList (a0, a1, a2, a3 = QString .null, a4 = QString .null, a5 = QString .null, a6 = Notify)

  Not Implemented

- warningContinueCancelList (a0, a1, a2, a3 = QString .null, a4 = KGuiItem (), a5 = QString .null, a6 = Notify)

  returns (int)
  In versions KDE 3.0.3 and above, but less than KDE 3.1.0
  static

  Argument | Type | Default
  --- | --- | ---
  a0 | QWidget |
  a1 | QString |
  a2 | QStringList |
  a3 | QString | QString .null
  a4 | KGuiItem | KGuiItem ()
  a5 | QString | QString .null
  a6 | int | Notify

- warningContinueCancelListWId (parent_id, text, strlist, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonContinue | KGuiItem | KStdGuiItem .cont ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningContinueCancelWId (parent_id, text, caption = QString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  buttonContinue | KGuiItem | KStdGuiItem .cont ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNo (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNoCancel (parent, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNoCancelList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNoCancelListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNoCancelWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify

- warningYesNoList (parent, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify | Dangerous

- warningYesNoListWId (parent_id, text, strlist, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  strlist | QStringList |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify | Dangerous

- warningYesNoWId (parent_id, text, caption = QString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = QString .null, options = Notify | Dangerous)

  returns (int)
  In versions KDE 3.2.0 and above only
  static

  Argument | Type | Default
  --- | --- | ---
  parent_id | WId |
  text | QString |
  caption | QString | QString .null
  buttonYes | KGuiItem | KStdGuiItem .yes ()
  buttonNo | KGuiItem | KStdGuiItem .no ()
  dontAskAgainName | QString | QString .null
  options | int | Notify | Dangerous