PyKDE - Python Bindings for KDE
class KAction
Table of contents
Modules
tdeui Classes
All Classes
Module
tdeui
Class
KAction
Inherits
TQObject
enums
ActivationReason
= {UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation }
methods
KAction
(text, cut, slot, parent, name)
returns
a KAction instance
Argument
Type
Default
text
TQString
cut
KShortcut
slot
SLOT
(Python callable)
parent
KActionCollection
name
char
KAction
(text, pix, cut, slot, parent, name)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQIconSet
cut
KShortcut
slot
SLOT
(Python callable)
parent
KActionCollection
name
char
KAction
(parent = 0, name = 0)
returns
a KAction instance
Argument
Type
Default
parent
TQObject
0
name
char
0
KAction
(text, pix, cut, slot, parent, name)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQString
cut
KShortcut
slot
SLOT
(Python callable)
parent
KActionCollection
name
char
KAction
(item, cut, slot, parent, name)
returns
a KAction instance
Argument
Type
Default
item
KGuiItem
cut
KShortcut
slot
SLOT
(Python callable)
parent
KActionCollection
name
char
KAction
(text, cut = KShortcut (), parent = 0, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
cut
KShortcut
KShortcut ()
parent
TQObject
0
name
char
0
KAction
(text, cut, slot, parent, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
cut
KShortcut
slot
SLOT
(Python callable)
parent
TQObject
name
char
0
KAction
(text, pix, cut = KShortcut (), parent = 0, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQIconSet
cut
KShortcut
KShortcut ()
parent
TQObject
0
name
char
0
KAction
(text, pix, cut = KShortcut (), parent = 0, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQString
cut
KShortcut
KShortcut ()
parent
TQObject
0
name
char
0
KAction
(text, pix, cut, slot, parent, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQIconSet
cut
KShortcut
slot
SLOT
(Python callable)
parent
TQObject
name
char
0
KAction
(text, pix, cut, slot, parent, name = 0)
returns
a KAction instance
Argument
Type
Default
text
TQString
pix
TQString
cut
KShortcut
slot
SLOT
(Python callable)
parent
TQObject
name
char
0
accel
()
returns
(int)
activate
()
returns
nothing
activated
()
returns
nothing
activated
(reason, state)
returns
nothing
In versions KDE 3.4.0 and above only
Argument
Type
Default
reason
KAction.ActivationReason
state
TQt.ButtonState
addContainer
(parent, id)
returns
nothing
Argument
Type
Default
parent
TQWidget
id
int
addContainer
(parent, representative)
returns
nothing
Argument
Type
Default
parent
TQWidget
representative
TQWidget
container
(index)
returns
(TQWidget)
Argument
Type
Default
index
int
containerCount
()
returns
(int)
enabled
(a0)
returns
nothing
Argument
Type
Default
a0
bool
findContainer
(widget)
returns
(int)
Argument
Type
Default
widget
TQWidget
findContainer
(id)
returns
(int)
In versions KDE 3.4.0 and above only
Argument
Type
Default
id
int
getToolButtonID
()
returns
(int)
static
group
()
returns
(TQString)
guiItem
()
returns
(KGuiItem)
In versions KDE 3.3.0 and above only
hasIcon
()
returns
(bool)
hasIconSet
()
returns
(bool)
icon
()
returns
(TQString)
iconSet
(group, size = 0)
returns
(TQIconSet)
Argument
Type
Default
group
KIcon.Group
size
int
0
iconSet
()
returns
(TQIconSet)
isEnabled
()
returns
(bool)
isPlugged
()
returns
(bool)
isPlugged
(container)
returns
(bool)
In versions KDE 3.1.0 and above only
Argument
Type
Default
container
TQWidget
isPlugged
(container, id)
returns
(bool)
Argument
Type
Default
container
TQWidget
id
int
isPlugged
(container, _representative)
returns
(bool)
Argument
Type
Default
container
TQWidget
_representative
TQWidget
isShortcutConfigurable
()
returns
(bool)
itemId
(index)
returns
(int)
Argument
Type
Default
index
int
kaccelCount
()
returns
(uint)
In versions KDE 3.1.0 and above only
menuId
(i)
returns
(int)
Argument
Type
Default
i
int
parentCollection
()
returns
(KActionCollection)
plainText
()
returns
(TQString)
plug
(widget, index = -1)
returns
(int)
Argument
Type
Default
widget
TQWidget
index
int
-1
plugAccel
(accel, configurable = 1)
returns
nothing
Argument
Type
Default
accel
KAccel
configurable
bool
1
plugMainWindowAccel
(w)
returns
nothing
Argument
Type
Default
w
TQWidget
popupMenu
(index)
returns
(TQPopupMenu)
Argument
Type
Default
index
int
removeContainer
(index)
returns
nothing
Argument
Type
Default
index
int
representative
(index)
returns
(TQWidget)
Argument
Type
Default
index
int
setAccel
(key)
returns
nothing
Argument
Type
Default
key
int
setDisabled
(disable)
returns
nothing
In versions KDE 3.5.0 and above only
Argument
Type
Default
disable
bool
setEnabled
(enable)
returns
nothing
Argument
Type
Default
enable
bool
setGroup
(a0)
returns
nothing
Argument
Type
Default
a0
TQString
setIcon
(icon)
returns
nothing
Argument
Type
Default
icon
TQString
setIconSet
(iconSet)
returns
nothing
Argument
Type
Default
iconSet
TQIconSet
setShortcut
(a0)
returns
(bool)
Argument
Type
Default
a0
KShortcut
setShortcutConfigurable
(a0)
returns
nothing
Argument
Type
Default
a0
bool
setShortcutText
(a0)
returns
nothing
Argument
Type
Default
a0
TQString
setStatusText
(text)
returns
nothing
Argument
Type
Default
text
TQString
setText
(text)
returns
nothing
Argument
Type
Default
text
TQString
setToolTip
(a0)
returns
nothing
Argument
Type
Default
a0
TQString
setWhatsThis
(text)
returns
nothing
Argument
Type
Default
text
TQString
shortcut
()
returns
(KShortcut)
shortcutDefault
()
returns
(KShortcut)
shortcutText
()
returns
(TQString)
slotActivated
()
returns
nothing
slotButtonClicked
(a0, state)
returns
nothing
In versions KDE 3.4.0 and above only
Argument
Type
Default
a0
int
state
TQt.ButtonState
slotDestroyed
()
returns
nothing
slotKeycodeChanged
()
returns
nothing
slotPopupActivated
()
returns
nothing
In versions KDE 3.4.0 and above only
statusText
()
returns
(TQString)
text
()
returns
(TQString)
toolBar
(index)
returns
(KToolBar)
Argument
Type
Default
index
int
toolTip
()
returns
(TQString)
unplug
(w)
returns
nothing
Argument
Type
Default
w
TQWidget
unplugAccel
()
returns
nothing
unplugAll
()
returns
nothing
updateEnabled
(i)
returns
nothing
Argument
Type
Default
i
int
updateGroup
(id)
returns
nothing
Argument
Type
Default
id
int
updateIcon
(i)
returns
nothing
Argument
Type
Default
i
int
updateIconSet
(i)
returns
nothing
Argument
Type
Default
i
int
updateShortcut
(i)
returns
nothing
Argument
Type
Default
i
int
updateShortcut
(menu, id)
returns
nothing
Argument
Type
Default
menu
TQPopupMenu
id
int
updateText
(i)
returns
nothing
Argument
Type
Default
i
int
updateToolTip
(id)
returns
nothing
Argument
Type
Default
id
int
updateWhatsThis
(i)
returns
nothing
Argument
Type
Default
i
int
whatsThis
()
returns
(TQString)
whatsThisWithIcon
()
returns
(TQString)
In versions KDE 3.1.0 and above only