#### PyKDE - Python Bindings for KDE

# class KAction

Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KAction
Inherits | QObject

### enums

- ActivationReason = {UnknownActivation, EmulatedActivation, AccelActivation, PopupMenuActivation, ToolBarActivation }

### methods

- KAction (text, cut, slot, parent, name)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  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 | QString |
  pix | QIconSet |
  cut | KShortcut |
  slot | SLOT (Python callable) |
  parent | KActionCollection |
  name | char |

- KAction (parent = 0, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  parent | QObject | 0
  name | char | 0

- KAction (text, pix, cut, slot, parent, name)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pix | QString |
  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 | QString |
  cut | KShortcut | KShortcut ()
  parent | QObject | 0
  name | char | 0

- KAction (text, cut, slot, parent, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  cut | KShortcut |
  slot | SLOT (Python callable) |
  parent | QObject |
  name | char | 0

- KAction (text, pix, cut = KShortcut (), parent = 0, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pix | QIconSet |
  cut | KShortcut | KShortcut ()
  parent | QObject | 0
  name | char | 0

- KAction (text, pix, cut = KShortcut (), parent = 0, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pix | QString |
  cut | KShortcut | KShortcut ()
  parent | QObject | 0
  name | char | 0

- KAction (text, pix, cut, slot, parent, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pix | QIconSet |
  cut | KShortcut |
  slot | SLOT (Python callable) |
  parent | QObject |
  name | char | 0

- KAction (text, pix, cut, slot, parent, name = 0)

  returns a KAction instance

  Argument | Type | Default
  --- | --- | ---
  text | QString |
  pix | QString |
  cut | KShortcut |
  slot | SLOT (Python callable) |
  parent | QObject |
  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 | Qt.ButtonState |

- addContainer (parent, id)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  id | int |

- addContainer (parent, representative)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  parent | QWidget |
  representative | QWidget |

- container (index)

  returns (QWidget)

  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 | QWidget |

- findContainer (id)

  returns (int)
  In versions KDE 3.4.0 and above only

  Argument | Type | Default
  --- | --- | ---
  id | int |

- getToolButtonID ()

  returns (int)
  static

- group ()

  returns (QString)

- guiItem ()

  returns (KGuiItem)
  In versions KDE 3.3.0 and above only

- hasIcon ()

  returns (bool)

- hasIconSet ()

  returns (bool)

- icon ()

  returns (QString)

- iconSet (group, size = 0)

  returns (QIconSet)

  Argument | Type | Default
  --- | --- | ---
  group | KIcon.Group |
  size | int | 0

- iconSet ()

  returns (QIconSet)

- isEnabled ()

  returns (bool)

- isPlugged ()

  returns (bool)

- isPlugged (container)

  returns (bool)
  In versions KDE 3.1.0 and above only

  Argument | Type | Default
  --- | --- | ---
  container | QWidget |

- isPlugged (container, id)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  container | QWidget |
  id | int |

- isPlugged (container, _representative)

  returns (bool)

  Argument | Type | Default
  --- | --- | ---
  container | QWidget |
  _representative | QWidget |

- 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 (QString)

- plug (widget, index = -1)

  returns (int)

  Argument | Type | Default
  --- | --- | ---
  widget | QWidget |
  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 | QWidget |

- popupMenu (index)

  returns (QPopupMenu)

  Argument | Type | Default
  --- | --- | ---
  index | int |

- removeContainer (index)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  index | int |

- representative (index)

  returns (QWidget)

  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 | QString |

- setIcon (icon)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  icon | QString |

- setIconSet (iconSet)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  iconSet | QIconSet |

- 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 | QString |

- setStatusText (text)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  text | QString |

- setText (text)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  text | QString |

- setToolTip (a0)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- setWhatsThis (text)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  text | QString |

- shortcut ()

  returns (KShortcut)

- shortcutDefault ()

  returns (KShortcut)

- shortcutText ()

  returns (QString)

- slotActivated ()

  returns nothing

- slotButtonClicked (a0, state)

  returns nothing
  In versions KDE 3.4.0 and above only

  Argument | Type | Default
  --- | --- | ---
  a0 | int |
  state | Qt.ButtonState |

- slotDestroyed ()

  returns nothing

- slotKeycodeChanged ()

  returns nothing

- slotPopupActivated ()

  returns nothing
  In versions KDE 3.4.0 and above only

- statusText ()

  returns (QString)

- text ()

  returns (QString)

- toolBar (index)

  returns (KToolBar)

  Argument | Type | Default
  --- | --- | ---
  index | int |

- toolTip ()

  returns (QString)

- unplug (w)

  returns nothing

  Argument | Type | Default
  --- | --- | ---
  w | QWidget |

- 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 | QPopupMenu |
  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 (QString)

- whatsThisWithIcon ()

  returns (QString)
  In versions KDE 3.1.0 and above only