#### PyKDE - Python Bindings for KDE

# class TDEPopupMenu |
Table of contents
Modules
tdeui Classes
All Classes

Module | tdeui
Class | TDEPopupMenu
Inherits | TQPopupMenu

### methods

- TDEPopupMenu (parent = 0, name = 0)

  returns a TDEPopupMenu instance
  Argument | Type | Default
  --- | --- | ---
  parent | TQWidget | 0
  name | char | 0

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

  returns a TDEPopupMenu instance
  Argument | Type | Default
  --- | --- | ---
  title | TQString |
  parent | TQWidget | 0
  name | char | 0

- aboutToShowContextMenu (menu, menuItem, ctxMenu)

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

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

- changeTitle (id, icon, text)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  icon | TQPixmap |
  text | TQString |

- closeEvent (a0)

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

- contextMenu ()

  returns (TQPopupMenu)
  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 | TQContextMenuEvent |

- contextMenuFocus ()

  returns (TDEPopupMenu)
  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 | TQHideEvent |

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

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

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

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | TQPixmap |
  text | TQString |
  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 | TQKeyEvent |

- mousePressEvent (e)

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

- mouseReleaseEvent (e)

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

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

- showCtxMenu (pos)

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

- state ()

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

- title (id = -1)

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

- titlePixmap (id)

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

- underlineText (text, length)

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