#### PyKDE - Python Bindings for KDE

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

Module | tdeui
Class | TDEAction
Inherits | TQObject

### enums

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

### methods

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TDEActionCollection |
  name | char |

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQIconSet |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TDEActionCollection |
  name | char |

- TDEAction (parent = 0, name = 0)

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  parent | TQObject | 0
  name | char | 0

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQString |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TDEActionCollection |
  name | char |

- TDEAction (item, cut, slot, parent, name)

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  item | KGuiItem |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TDEActionCollection |
  name | char |

- TDEAction (text, cut = TDEShortcut (), parent = 0, name = 0)

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  cut | TDEShortcut | TDEShortcut ()
  parent | TQObject | 0
  name | char | 0

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TQObject |
  name | char | 0

- TDEAction (text, pix, cut = TDEShortcut (), parent = 0, name = 0)

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQIconSet |
  cut | TDEShortcut | TDEShortcut ()
  parent | TQObject | 0
  name | char | 0

- TDEAction (text, pix, cut = TDEShortcut (), parent = 0, name = 0)

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQString |
  cut | TDEShortcut | TDEShortcut ()
  parent | TQObject | 0
  name | char | 0

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQIconSet |
  cut | TDEShortcut |
  slot | SLOT (Python callable) |
  parent | TQObject |
  name | char | 0

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

  returns a TDEAction instance
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  pix | TQString |
  cut | TDEShortcut |
  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 | TDEAction.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 | TDEIcon.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 |

- tdeaccelCount ()

  returns (uint)
  In versions KDE 3.1.0 and above only

- menuId (i)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  i | int |

- parentCollection ()

  returns (TDEActionCollection)

- 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 | TDEAccel |
  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 | TDEShortcut |

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

- shortcutDefault ()

  returns (TDEShortcut)

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