#### PyKDE - Python Bindings for KDE

# class KAccel |
Table of contents
Modules
kdecore Classes
All Classes

Module | kdecore
Class | KAccel
Inherits | QAccel

### methods

- KAccel (pParent, psName = 0)

  returns a KAccel instance
  Argument | Type | Default
  --- | --- | ---
  pParent | QWidget |
  psName | char | 0

- KAccel (watch, parent, psName = 0)

  returns a KAccel instance
  Argument | Type | Default
  --- | --- | ---
  watch | QWidget |
  parent | QObject |
  psName | char | 0

- actions ()

  returns (KAccelActions)

- changeMenuAccel (menu, id, action)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  menu | QPopupMenu |
  id | int |
  action | QString |

- changeMenuAccel (menu, id, accel)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  menu | QPopupMenu |
  id | int |
  accel | KStdAccel.StdAccel |

- configGroup ()

  returns (QString)

- connectItem (sAction, slot, bActivate = 1)

  returns (bool)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  slot | SLOT (Python callable) |
  bActivate | bool | 1

- connectItem (accel, slot, )

  returns (bool)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  accel | KStdAccel.StdAccel |
  slot | SLOT (Python callable) |

- connectItem (a0, a1, a2, a3 = 1)

  returns (bool)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QObject |
  a2 | char |
  a3 | bool | 1

- connectItem (a0, a1, a2)

  returns (bool)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | KStdAccel.StdAccel |
  a1 | QObject |
  a2 | char |

- currentKey (action)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  action | QString |

- emitKeycodeChanged ()

  returns nothing

- findKey (key)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  key | int |

- getAutoUpdate ()

  Not Implemented

- insert (sAction, sLabel, sWhatsThis, cutDef, slot, bConfigurable = 1, bEnabled = 1)

  returns (KAccelAction)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  sLabel | QString |
  sWhatsThis | QString |
  cutDef | KShortcut |
  slot | SLOT (Python callable) |
  bConfigurable | bool | 1
  bEnabled | bool | 1

- insert (sAction, sLabel, sWhatsThis, cutDef3, cutDef4, slot, bConfigurable = 1, bEnabled = 1)

  returns (KAccelAction)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  sLabel | QString |
  sWhatsThis | QString |
  cutDef3 | KShortcut |
  cutDef4 | KShortcut |
  slot | SLOT (Python callable) |
  bConfigurable | bool | 1
  bEnabled | bool | 1

- insert (psAction, cutDef, slot, bConfigurable = 1, bEnabled = 1)

  returns (KAccelAction)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  psAction | char |
  cutDef | KShortcut |
  slot | SLOT (Python callable) |
  bConfigurable | bool | 1
  bEnabled | bool | 1

- insert (id, slot, bConfigurable = 1, bEnabled = 1)

  returns (KAccelAction)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  id | KStdAccel.StdAccel |
  slot | SLOT (Python callable) |
  bConfigurable | bool | 1
  bEnabled | bool | 1

- insert (a0, a1)

  Not Implemented

- insert (a0, a1, a2, a3, a4, a5, a6 = 1, a7 = 1)

  returns (KAccelAction)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QString |
  a2 | QString |
  a3 | KShortcut |
  a4 | QObject |
  a5 | char |
  a6 | bool | 1
  a7 | bool | 1

- insert (a0, a1, a2, a3, a4, a5, a6, a7 = 1, a8 = 1)

  returns (KAccelAction)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QString |
  a2 | QString |
  a3 | KShortcut |
  a4 | KShortcut |
  a5 | QObject |
  a6 | char |
  a7 | bool | 1
  a8 | bool | 1

- insert (a0, a1, a2, a3, a4 = 1, a5 = 1)

  returns (KAccelAction)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | char |
  a1 | KShortcut |
  a2 | QObject |
  a3 | char |
  a4 | bool | 1
  a5 | bool | 1

- insert (a0, a1, a2, a3 = 1, a4 = 1)

  returns (KAccelAction)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | KStdAccel.StdAccel |
  a1 | QObject |
  a2 | char |
  a3 | bool | 1
  a4 | bool | 1

- insertItem (sLabel, sAction, psKey, nIDMenu = 0, pMenu = 0, bConfigurable = 1)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sLabel | QString |
  sAction | QString |
  psKey | char |
  nIDMenu | int | 0
  pMenu | QPopupMenu | 0
  bConfigurable | bool | 1

- insertItem (sLabel, sAction, key, nIDMenu, pMenu, bConfigurable = 1)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sLabel | QString |
  sAction | QString |
  key | int |
  nIDMenu | int |
  pMenu | QPopupMenu |
  bConfigurable | bool | 1

- insertStdItem (id, descr = QString .null)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  id | KStdAccel.StdAccel |
  descr | QString | QString .null

- isEnabled ()

  returns (bool)

- keycodeChanged ()

  returns nothing

- readSettings (pConfig = 0)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  pConfig | KConfigBase | 0

- remove (sAction)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |

- removeItem (sAction)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |

- setAutoUpdate (bAuto)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  bAuto | bool |

- setConfigGroup (name)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  name | QString |

- setEnabled (bEnabled)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  bEnabled | bool |

- setEnabled (sAction, bEnabled)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  bEnabled | bool |

- setItemEnabled (sAction, bEnable)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  bEnable | bool |

- setShortcut (sAction, shortcut)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  shortcut | KShortcut |

- setSlot (sAction, slot, )

  returns (bool)
  In versions KDE 3.1.4 and above only
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |
  slot | SLOT (Python callable) |

- setSlot (a0, a1, a2)

  returns (bool)
  In versions less than KDE 3.1.4 only
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QObject |
  a2 | char |

- shortcut (sAction)

  returns (KShortcut)
  Argument | Type | Default
  --- | --- | ---
  sAction | QString |

- stringToKey (a0)

  returns (int)
  static
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |

- updateConnections ()

  returns (bool)

- writeSettings (pConfig = 0)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  pConfig | KConfigBase | 0