#### PyKDE - Python Bindings for KDE

# class KParts.PartManager |
Table of contents
Modules
kparts Classes
All Classes

Module | kparts
Class | KParts.PartManager
Inherits | QObject

### enums

- Reason = {ReasonLeftClick, ReasonMidClick, ReasonRightClick, NoReason }
- SelectionPolicy = {Direct, TriState }

### methods

- PartManager (parent, name = 0)

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

- PartManager (topLevel, parent, name = 0)

  returns a PartManager instance
  Argument | Type | Default
  --- | --- | ---
  topLevel | QWidget |
  parent | QObject |
  name | char | 0

- activationButtonMask ()

  returns (short)
  In versions KDE 3.1.0 and above only

- activePart ()

  returns (KParts.Part)

- activePartChanged (newPart)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  newPart | KParts.Part |

- activeWidget ()

  returns (QWidget)

- addManagedTopLevelWidget (topLevel)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  topLevel | QWidget |

- addPart (part, setActive = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |
  setActive | bool | 1

- allowNestedParts ()

  returns (bool)

- eventFilter (obj, ev)

  returns (bool)
  Argument | Type | Default
  --- | --- | ---
  obj | QObject |
  ev | QEvent |

- ignoreScrollBars ()

  returns (bool)

- partAdded (part)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |

- partRemoved (part)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |

- parts ()

  returns (QPtrList)

- reason ()

  returns (int)
  In versions KDE 3.3.0 and above only

- removeManagedTopLevelWidget (topLevel)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  topLevel | QWidget |

- removePart (part)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |

- replacePart (oldPart, newPart, setActive = 1)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  oldPart | KParts.Part |
  newPart | KParts.Part |
  setActive | bool | 1

- selectedPart ()

  returns (KParts.Part)

- selectedWidget ()

  returns (QWidget)

- selectionPolicy ()

  returns (KParts.PartManager.SelectionPolicy)

- setActivationButtonMask (buttonMask)

  returns nothing
  In versions KDE 3.1.0 and above only
  Argument | Type | Default
  --- | --- | ---
  buttonMask | short |

- setActiveInstance (instance)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  instance | KInstance |

- setActivePart (part, widget = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |
  widget | QWidget | 0

- setAllowNestedParts (allow)

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

- setIgnoreScrollBars (ignore)

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

- setSelectedPart (part, widget = 0)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  part | KParts.Part |
  widget | QWidget | 0

- setSelectionPolicy (policy)

  returns nothing
  Argument | Type | Default
  --- | --- | ---
  policy | KParts.PartManager.SelectionPolicy |

- slotManagedTopLevelWidgetDestroyed ()

  returns nothing

- slotObjectDestroyed ()

  returns nothing

- slotWidgetDestroyed ()

  returns nothing