#### PyKDE - Python Bindings for KDE

# class KPopupMenu |
Table of contents
Modules
kdeui Classes
All Classes

Module | kdeui
Class | KPopupMenu
Inherits | QPopupMenu

### methods

- KPopupMenu (parent = 0, name = 0)

  returns a KPopupMenu instance
  Argument | Type | Default
  --- | --- | ---
  parent | QWidget | 0
  name | char | 0

- KPopupMenu (title, parent = 0, name = 0)

  returns a KPopupMenu instance
  Argument | Type | Default
  --- | --- | ---
  title | QString |
  parent | QWidget | 0
  name | char | 0

- aboutToShowContextMenu (menu, menuItem, ctxMenu)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  menu | KPopupMenu |
  menuItem | int |
  ctxMenu | QPopupMenu |

- activateItemAt (index)

  returns nothing
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  index | int |

- changeTitle (id, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  text | QString |

- changeTitle (id, icon, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  icon | QPixmap |
  text | QString |

- closeEvent (a0)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  a0 | QCloseEvent |

- contextMenu ()

  returns (QPopupMenu)
  In versions KDE 3.2.0 and above only

- contextMenuEvent (e)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  e | QContextMenuEvent |

- contextMenuFocus ()

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

- contextMenuFocusItem ()

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

- ctxMenuHideShowingMenu ()

  returns nothing
  In versions KDE 3.2.0 and above only

- ctxMenuHiding ()

  returns nothing
  In versions KDE 3.2.0 and above only

- focusNextPrevChild (next)

  returns (bool)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  next | bool |

- hideContextMenu ()

  returns nothing
  In versions KDE 3.2.0 and above only

- hideEvent (a0)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  a0 | QHideEvent |

- insertTitle (text, id = -1, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  id | int | -1
  index | int | -1

- insertTitle (icon, text, id = -1, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | QPixmap |
  text | QString |
  id | int | -1
  index | int | -1

- itemHighlighted (whichItem)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  whichItem | int |

- keyPressEvent (e)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  e | QKeyEvent |

- mousePressEvent (e)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- mouseReleaseEvent (e)

  returns nothing
  In versions KDE 3.4.0 and above only
  Argument | Type | Default
  --- | --- | ---
  e | QMouseEvent |

- resetKeyboardVars (noMatches = 0)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  noMatches | bool | 0

- setKeyboardShortcutsEnabled (enable)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setKeyboardShortcutsExecute (enable)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  enable | bool |

- setTitle (title)

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

- showCtxMenu (pos)

  returns nothing
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  pos | QPoint |

- state ()

  returns (Qt.ButtonState)
  In versions KDE 3.4.0 and above only

- title (id = -1)

  returns (QString)
  Argument | Type | Default
  --- | --- | ---
  id | int | -1

- titlePixmap (id)

  returns (QPixmap)
  Argument | Type | Default
  --- | --- | ---
  id | int |

- underlineText (text, length)

  returns (QString)
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  length | uint |