class TDEToolBar

#### PyKDE - Python Bindings for KDE

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

Module | tdeui
Class | TDEToolBar
Inherits | TQToolBar

### enums

- BarPosition = {Unmanaged, Floating, Top, Bottom, Right, Left, Flat }
- BarStatus = {Toggle, Show, Hide }
- IconText = {IconOnly, IconTextRight, TextOnly, IconTextBottom }

### methods

- TDEToolBar (parent, name = 0, honorStyle = 0, readConfig = 1)

  returns a TDEToolBar instance
  Argument | Type | Default
  --- | --- | ---
  parent | TQWidget |
  name | char | 0
  honorStyle | bool | 0
  readConfig | bool | 1

- TDEToolBar (parentWindow, dock, newLine = 0, name = 0, honorStyle = 0, readConfig = 1)

  Not Implemented

- TDEToolBar (parentWindow, dock, newLine = 0, name = 0, honorStyle = 0, readConfig = 1)

  returns a TDEToolBar instance
  Argument | Type | Default
  --- | --- | ---
  parentWindow | TQMainWindow |
  dock | TQWidget |
  newLine | bool | 0
  name | char | 0
  honorStyle | bool | 0
  readConfig | bool | 1

- addConnection (id, signal, slot)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  signal | char |
  slot | SLOT (Python callable) |

- alignItemRight (id, right = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  right | bool | 1

- animatedWidget (id)

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

- applyAppearanceSettings (config, _configGroup, forceGlobal = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  _configGroup | TQString |
  forceGlobal | bool | 0

- applySettings (config, configGroup, force)

  returns nothing
  In versions KDE 3.3.0 and above only
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  configGroup | TQString |
  force | bool |

- applySettings (config, configGroup)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  configGroup | TQString |

- barPos ()

  returns (BarPosition)

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

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

- childEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQChildEvent |

- clear ()

  returns nothing

- clearCombo (id)

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

- clicked (id)

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

- contextMenuEnabled ()

  returns (bool)

- count ()

  returns (int)

- doubleClicked (id)

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

- enable (stat)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  stat | TDEToolBar.BarStatus |

- enableFloating (flag)

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

- enableMoving (flag = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  flag | bool | 1

- event (e)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  e | TQEvent |

- fullSize ()

  returns (bool)

- getButton (id)

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

- getCombo (id)

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

- getComboItem (id, index = -1)

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

- getLined (id)

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

- getLinedText (id)

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

- getWidget (id)

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

- hide ()

  returns nothing

- hideItem (id)

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

- highlight ()

  returns (bool)

- highlightSetting ()

  returns (bool)
  In versions KDE 3.1.0 and above only
  static

- highlightSetting ()

  Not Implemented

- highlighted (id, isHighlighted)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  isHighlighted | bool |

- highlighted (id)

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

- iconSize ()

  returns (int)

- iconSizeDefault ()

  returns (int)
  In versions KDE 3.4.0 and above only

- iconText ()

  returns (IconText)

- iconTextSetting ()

  returns (TDEToolBar.IconText)
  In versions KDE 3.1.0 and above only
  static

- iconTextSetting ()

  Not Implemented

- idAt (index)

  returns (int)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  index | int |

- insertAnimatedWidget (id, slot, icons, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  id | int |
  slot | SLOT (Python callable) |
  icons | TQString |
  index | int | -1

- insertButton (icon, id, enabled = 1, text = TQString .null, index = -1, _instance = TDEGlobal .instance ())

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | TQString |
  id | int |
  enabled | bool | 1
  text | TQString | TQString .null
  index | int | -1
  _instance | TDEInstance | TDEGlobal .instance ()

- insertButton (icon, id, signal, slot, enabled = 1, text = TQString .null, index = -1, _instance = TDEGlobal .instance ())

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | TQString |
  id | int |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  text | TQString | TQString .null
  index | int | -1
  _instance | TDEInstance | TDEGlobal .instance ()

- insertButton (pixmap, id, enabled = 1, text = TQString .null, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  pixmap | TQPixmap |
  id | int |
  enabled | bool | 1
  text | TQString | TQString .null
  index | int | -1

- insertButton (pixmap, id, signal, slot, enabled = 1, text = TQString .null, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  pixmap | TQPixmap |
  id | int |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  text | TQString | TQString .null
  index | int | -1

- insertButton (icon, id, popup, enabled, _text, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | TQString |
  id | int |
  popup | TQPopupMenu |
  enabled | bool |
  _text | TQString |
  index | int | -1

- insertButton (pixmap, id, popup, enabled, _text, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  pixmap | TQPixmap |
  id | int |
  popup | TQPopupMenu |
  enabled | bool |
  _text | TQString |
  index | int | -1

- insertCombo (list, id, writable, signal, slot, enabled = 1, tooltiptext = TQString .null, size = 70, index = -1, policy = TQComboBox .AtBottom)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  list | TQStringList |
  id | int |
  writable | bool |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  tooltiptext | TQString | TQString .null
  size | int | 70
  index | int | -1
  policy | TQComboBox.Policy | TQComboBox .AtBottom

- insertCombo (text, id, writable, signal, slot, enabled = 1, tooltiptext = TQString .null, size = 70, index = -1, policy = TQComboBox .AtBottom)

  returns (int)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  id | int |
  writable | bool |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  tooltiptext | TQString | TQString .null
  size | int | 70
  index | int | -1
  policy | TQComboBox.Policy | TQComboBox .AtBottom

- insertCombo (a0, a1, a2, a3, a4, a5, a6 = 1, a7 = TQString .null, a8 = 70, a9 = -1, a10 = TQComboBox .AtBottom)

  returns (int)
  In versions less than KDE 3.2.0 only
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |
  a1 | int |
  a2 | bool |
  a3 | char |
  a4 | TQObject |
  a5 | char |
  a6 | bool | 1
  a7 | TQString | TQString .null
  a8 | int | 70
  a9 | int | -1
  a10 | TQComboBox.Policy | TQComboBox .AtBottom

- insertComboItem (id, text, index)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  text | TQString |
  index | int |

- insertComboList (id, list, index)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  list | TQStringList |
  index | int |

- insertLineSeparator (index, id)

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

- insertLined (text, id, signal, slot, enabled = 1, toolTipText = TQString .null, size = 70, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  text | TQString |
  id | int |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  toolTipText | TQString | TQString .null
  size | int | 70
  index | int | -1

- insertSeparator (index, id)

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

- insertWidget (id, width, _widget, index = -1)

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  id | int |
  width | int |
  _widget | TQWidget |
  index | int | -1

- isButtonOn (id)

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

- itemIndex (id)

  returns (int)
  In versions KDE 3.2.0 and above only
  Argument | Type | Default
  --- | --- | ---
  id | int |

- loadState (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQDomElement |

- maxHeight ()

  returns (int)

- maxWidth ()

  returns (int)

- minimumSize ()

  returns (TQSize)

- minimumSizeHint ()

  returns (TQSize)

- modechange ()

  returns nothing

- mousePressEvent (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TQMouseEvent |

- moved (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | TDEToolBar.BarPosition |

- positionYourself (force)

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

- pressed (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- released (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- removeComboItem (id, index)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  index | int |

- removeItem (id)

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

- removeItemDelayed (id)

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

- resizeEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQResizeEvent |

- saveSettings (config, configGroup)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | TDEConfig |
  configGroup | TQString |

- saveState ()

  returns nothing

- saveState (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQDomElement |

- setAutoRepeat (id, flag = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  flag | bool | 1

- setBarPos (bpos)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  bpos | TDEToolBar.BarPosition |

- setButton (id, flag)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  flag | bool |

- setButtonIcon (id, _icon)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  _icon | TQString |

- setButtonIconSet (id, iconset)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  iconset | TQIconSet |

- setButtonPixmap (id, _pixmap)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  _pixmap | TQPixmap |

- setCurrentComboItem (id, index)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  index | int |

- setDelayedPopup (id, _popup, toggle = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  _popup | TQPopupMenu |
  toggle | bool | 0

- setEnableContextMenu (enable = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  enable | bool | 1

- setFlat (flag)

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

- setFullSize (flag = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  flag | bool | 1

- setIconSize (size)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  size | int |

- setIconSize (size, update)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  size | int |
  update | bool |

- setIconText (it)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  it | TDEToolBar.IconText |

- setIconText (it, update)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  it | TDEToolBar.IconText |
  update | bool |

- setIconText (txt)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  txt | TQString |

- setItemAutoSized (id, yes = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  yes | bool | 1

- setItemEnabled (id, enabled)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  enabled | bool |

- setItemNoStyle (id, no_style = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  no_style | bool | 1

- setLinedText (id, text)

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

- setMaxHeight (h)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  h | int |

- setMaxWidth (dw)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  dw | int |

- setStretchableWidget (w)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  w | TQWidget |

- setText (txt)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  txt | TQString |

- setTitle (_title)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  _title | TQString |

- setToggle (id, flag = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  id | int |
  flag | bool | 1

- setXMLGUIClient (client)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  client | KXMLGUIClient |

- settingsGroup ()

  returns (TQString)

- show ()

  returns nothing

- showEvent (e)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  e | TQShowEvent |

- showItem (id)

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

- sizeHint ()

  returns (TQSize)

- sizePolicy ()

  returns (TQSizePolicy)

- text ()

  returns (TQString)

- toggleButton (id)

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

- toggled (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | int |

- toolbarDestroyed ()

  returns nothing
  In versions KDE 3.1.0 and above only

- transparentSetting ()

  returns (bool)
  In versions KDE 3.1.0 and above only
  static

- transparentSetting ()

  Not Implemented

- updateRects (a0 = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | bool | 0