tdeparts globals

#### PyKDE - Python Bindings for KDE

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

### global methods

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

  returns (KParts.ReadOnlyPart)
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |
  a1 | TQObject | 0
  a2 | TQString | TQString .null
  a3 | char | "KParts.ReadOnlyPart"
  a4 | TQStringList | TQStringList ()
  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 TQString& lib, TQObject *parent,
                                                const TQString& name, const char *className,
                                                const TQStringList &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 = TQString .null, a3 = "KParts.ReadWritePart", a4 = TQStringList ())

  returns (KParts.ReadWritePart)
  Argument | Type | Default
  --- | --- | ---
  a0 | TQString |
  a1 | TQObject | 0
  a2 | TQString | TQString .null
  a3 | char | "KParts.ReadWritePart"
  a4 | TQStringList | TQStringList ()
  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 TQString& lib, TQObject *parent,
                                                const TQString& name, const char *className,
                                                const TQStringList &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)

- testTQMapTQCStringInt (dict)

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