#### PyKDE - Python Bindings for KDE

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

Module | kdeui
Class | KToolBar
Inherits | QToolBar

### enums

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

### methods

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

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

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

  Not Implemented

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

  returns a KToolBar instance
  Argument | Type | Default
  --- | --- | ---
  parentWindow | QMainWindow |
  dock | QWidget |
  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 | KConfig |
  _configGroup | QString |
  forceGlobal | bool | 0

- applySettings (config, configGroup, force)

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

- applySettings (config, configGroup)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  configGroup | QString |

- barPos ()

  returns (BarPosition)

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

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

- childEvent (e)

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

- 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 | KToolBar.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 | QEvent |

- fullSize ()

  returns (bool)

- getButton (id)

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

- getCombo (id)

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

- getComboItem (id, index = -1)

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

- getLined (id)

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

- getLinedText (id)

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

- getWidget (id)

  returns (QWidget)
  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 (KToolBar.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 | QString |
  index | int | -1

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

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  icon | QString |
  id | int |
  enabled | bool | 1
  text | QString | QString .null
  index | int | -1
  _instance | KInstance | KGlobal .instance ()

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

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

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

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

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

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

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

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

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

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  pixmap | QPixmap |
  id | int |
  popup | QPopupMenu |
  enabled | bool |
  _text | QString |
  index | int | -1

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

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

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

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

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

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

- insertComboItem (id, text, index)

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

- insertComboList (id, list, index)

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

- insertLineSeparator (index, id)

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

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

  returns (int)
  Argument | Type | Default
  --- | --- | ---
  text | QString |
  id | int |
  signal | char |
  slot | SLOT (Python callable) |
  enabled | bool | 1
  toolTipText | QString | QString .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 | QWidget |
  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 | QDomElement |

- maxHeight ()

  returns (int)

- maxWidth ()

  returns (int)

- minimumSize ()

  returns (QSize)

- minimumSizeHint ()

  returns (QSize)

- modechange ()

  returns nothing

- mousePressEvent (a0)

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

- moved (a0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  a0 | KToolBar.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 | QResizeEvent |

- saveSettings (config, configGroup)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  config | KConfig |
  configGroup | QString |

- saveState ()

  returns nothing

- saveState (e)

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

- setAutoRepeat (id, flag = 1)

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

- setBarPos (bpos)

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

- setButton (id, flag)

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

- setButtonIcon (id, _icon)

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

- setButtonIconSet (id, iconset)

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

- setButtonPixmap (id, _pixmap)

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

- 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 | QPopupMenu |
  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 | KToolBar.IconText |

- setIconText (it, update)

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

- setIconText (txt)

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

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

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

- setText (txt)

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

- setTitle (_title)

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

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

- show ()

  returns nothing

- showEvent (e)

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

- showItem (id)

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

- sizeHint ()

  returns (QSize)

- sizePolicy ()

  returns (QSizePolicy)

- text ()

  returns (QString)

- 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