#### PyKDE - Python Bindings for KDE

# kparts Globals |
Table of contents
Modules
kparts Classes
All Classes

### global methods

- createReadOnlyPart (a0, a1 = 0, a2 = QString .null, a3 = "KParts.ReadOnlyPart", a4 = QStringList ())

  returns (KParts.ReadOnlyPart)
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QObject | 0
  a2 | QString | QString .null
  a3 | char | "KParts.ReadOnlyPart"
  a4 | QStringList | QStringList ()
  This is a PyKDE-only function that handles the machinery necessary to create a KParts::ReadOnlyPart. It executes the following C++ code:
      KParts::ReadOnlyPart *createReadOnlyPart (const QString& lib, QObject *parent,
                                                const QString& name, const char *className,
                                                const QStringList &args)
      {
         KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
         if (factory)
                 return static_cast<KParts::ReadOnlyPart*> (factory->create (parent,
                                                    (const char *)name, className, args));
             else
                     return NULL;
  Notice that it takes care of creating the KLibFactory for you, and returns the part cast to type KParts::ReadOnlyPart. The actual part has a different class (derived from KParts::ReadOnlyPart), and calls to openURL or openFile will use the part's overloaded methods. Currently it isn't possible to call KParts::ReadOnlyPart::openURL if it has been overloaded. Usage: KParts.createReadOnlyPart (lib, parent, name, className, args)

- createReadWritePart (a0, a1 = 0, a2 = QString .null, a3 = "KParts.ReadWritePart", a4 = QStringList ())

  returns (KParts.ReadWritePart)
  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QObject | 0
  a2 | QString | QString .null
  a3 | char | "KParts.ReadWritePart"
  a4 | QStringList | QStringList ()
  This is a PyKDE-only function that handles the machinery necessary to create a KParts::ReadWritePart. It executes the following C++ code:
      KParts::ReadWritePart *createReadWritePart (const QString& lib, QObject *parent,
                                                const QString& name, const char *className,
                                                const QStringList &args)
      {
          KLibFactory *factory = KLibLoader::self ()->factory ((const char *)lib);
          if (factory)
                  return static_cast<KParts::ReadWritePart*> (factory->create (parent,
                                                     (const char *)name, className, args));
              else
                      return NULL;
  Notice that it takes care of creating the KLibFactory for you, and returns the part cast to type KParts::ReadWritePart. The actual part has a different class (derived from KParts::ReadWritePart), and calls to openURL or openFile will use the part's overloaded methods. Currently it isn't possible to call KParts::ReadWritePart::openURL if it has been overloaded. Usage: KParts.createReadWritePart (lib, parent, name, className, args)

- testQMapQCStringInt (dict)

  returns (QMap),
  Argument | Type | Default
  --- | --- | ---
  dict | QMap |