PyKDE - Python Bindings for KDE
class KMessageBox
Table of contents
Modules
tdeui Classes
All Classes
Module
tdeui
Class
KMessageBox
Inherits
enums
ButtonCode
= {Ok, Cancel, Yes, No, Continue }
DialogType
= {QuestionYesNo, WarningYesNo, WarningContinueCancel, WarningYesNoCancel, Information, Sorry, Error, QuestionYesNoCancel }
OptionsType
= {Notify, AllowLink, Dangerous, PlainCaption, NoExec }
OptionsType
= {Notify, AllowLink, Dangerous }
OptionsType
= {Notify, AllowLink }
methods
about
(parent, text, caption = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
options
bool
1
createKMessageBox
(dialog, icon, text, strlist, ask, options, details = TQString .null)
returns
(int) checkboxReturn (bool)
In versions KDE 3.3.0 and above only
static
Argument
Type
Default
dialog
KDialogBase
icon
TQMessageBox.Icon
text
TQString
strlist
TQStringList
ask
TQString
options
int
details
TQString
TQString .null
createKMessageBox
(dialog, icon, text, strlist, ask, options, details = TQString .null, notifyType = TQMessageBox .Information)
returns
(int) checkboxReturn (bool)
In versions KDE 3.3.0 and above only
static
Argument
Type
Default
dialog
KDialogBase
icon
TQPixmap
text
TQString
strlist
TQStringList
ask
TQString
options
int
details
TQString
TQString .null
notifyType
TQMessageBox.Icon
TQMessageBox .Information
detailedError
(parent, text, details, caption = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
details
TQString
caption
TQString
TQString .null
options
bool
1
detailedErrorWId
(parent_id, text, details, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
details
TQString
caption
TQString
TQString .null
options
int
Notify
detailedSorry
(parent, text, details, caption = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
details
TQString
caption
TQString
TQString .null
options
bool
1
detailedSorryWId
(parent_id, text, details, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
details
TQString
caption
TQString
TQString .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
TQString
error
(parent, text, caption = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
options
bool
1
errorList
(parent, text, strlist, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.4.0 and above only
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
options
int
Notify
errorListWId
(parent_id, text, strlist, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.4.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
options
int
Notify
errorWId
(parent_id, text, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
options
int
Notify
information
(parent, text, caption = TQString .null, dontShowAgainName = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
dontShowAgainName
TQString
TQString .null
options
bool
1
informationList
(parent, text, strlist, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.1.0 and above only
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
dontShowAgainName
TQString
TQString .null
options
int
Notify
informationListWId
(parent_id, text, strlist, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
dontShowAgainName
TQString
TQString .null
options
int
Notify
informationWId
(parent_id, text, caption = TQString .null, dontShowAgainName = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
dontShowAgainName
TQString
TQString .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
TQWidget
type
KMessageBox.DialogType
text
TQString
caption
TQString
buttonYes
KGuiItem
buttonNo
KGuiItem
dontShowAskAgainName
TQString
options
int
Notify
messageBox
(parent, type, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
type
KMessageBox.DialogType
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
options
int
Notify
messageBoxWId
(parent_id, type, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontShowAskAgainName = TQString .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
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontShowAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNo
(parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNoCancel
(parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNoCancelWId
(parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNoList
(parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNoListWId
(parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
questionYesNoWId
(parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
queuedDetailedError
(parent, text, details, caption = TQString .null)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
details
TQString
caption
TQString
TQString .null
queuedDetailedErrorWId
(parent_id, text, details, caption = TQString .null)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
details
TQString
caption
TQString
TQString .null
queuedMessageBox
(parent, type, text, caption, options)
returns
nothing
In versions KDE 3.1.0 and above only
static
Argument
Type
Default
parent
TQWidget
type
KMessageBox.DialogType
text
TQString
caption
TQString
options
int
queuedMessageBox
(parent, type, text, caption = TQString .null)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
type
KMessageBox.DialogType
text
TQString
caption
TQString
TQString .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
TQString
caption
TQString
options
int
queuedMessageBoxWId
(parent_id, type, text, caption = TQString .null)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
type
KMessageBox.DialogType
text
TQString
caption
TQString
TQString .null
saveDontShowAgainContinue
(dontShowAgainName)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
dontShowAgainName
TQString
saveDontShowAgainYesNo
(dontShowAgainName, result)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
dontShowAgainName
TQString
result
KMessageBox.ButtonCode
setDontShowAskAgainConfig
(cfg)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
cfg
TDEConfig
shouldBeShownContinue
(dontShowAgainName)
returns
(bool)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
dontShowAgainName
TQString
shouldBeShownYesNo
(dontShowAgainName)
returns
(bool) result (KMessageBox.ButtonCode)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
dontShowAgainName
TQString
sorry
(parent, text, caption = TQString .null, options = 1)
returns
nothing
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
options
bool
1
sorryWId
(parent_id, text, caption = TQString .null, options = Notify)
returns
nothing
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
options
int
Notify
warningContinueCancel
(parent, text, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
buttonContinue
KGuiItem
KStdGuiItem .cont ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningContinueCancelList
(parent, text, strlist, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.1.0 and above only
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonContinue
KGuiItem
KStdGuiItem .cont ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningContinueCancelList
(a0, a1, a2, a3 = TQString .null, a4 = TQString .null, a5 = TQString .null, a6 = Notify)
Not Implemented
warningContinueCancelList
(a0, a1, a2, a3 = TQString .null, a4 = KGuiItem (), a5 = TQString .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
TQWidget
a1
TQString
a2
TQStringList
a3
TQString
TQString .null
a4
KGuiItem
KGuiItem ()
a5
TQString
TQString .null
a6
int
Notify
warningContinueCancelListWId
(parent_id, text, strlist, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonContinue
KGuiItem
KStdGuiItem .cont ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningContinueCancelWId
(parent_id, text, caption = TQString .null, buttonContinue = KStdGuiItem .cont (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
buttonContinue
KGuiItem
KStdGuiItem .cont ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNo
(parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNoCancel
(parent, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
static
Argument
Type
Default
parent
TQWidget
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNoCancelList
(parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNoCancelListWId
(parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNoCancelWId
(parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify
warningYesNoList
(parent, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent
TQWidget
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify | Dangerous
warningYesNoListWId
(parent_id, text, strlist, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
strlist
TQStringList
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify | Dangerous
warningYesNoWId
(parent_id, text, caption = TQString .null, buttonYes = KStdGuiItem .yes (), buttonNo = KStdGuiItem .no (), dontAskAgainName = TQString .null, options = Notify | Dangerous)
returns
(int)
In versions KDE 3.2.0 and above only
static
Argument
Type
Default
parent_id
WId
text
TQString
caption
TQString
TQString .null
buttonYes
KGuiItem
KStdGuiItem .yes ()
buttonNo
KGuiItem
KStdGuiItem .no ()
dontAskAgainName
TQString
TQString .null
options
int
Notify | Dangerous