>   factory = kdecore.KLibLoader.self().factory( "libkonsolepart" );
>   p=factory.create( win)
>
> with
>
>   p = kparts.createReadWritePart("libkonsolepart", win, "konsole",
>                                  "KParts::Part")
>
> The syntax for this convenience function is
>
>   createReadWritePart(lib, parent, name, className, args)
>
> and I think I've chosen the correct library and class names for your
> example.

Well, that works fine and I get a terminal, but I run into another problem.

To use the TerminalInterface-specific functionality, you need a
TerminalInterface like this:

TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast(
"TerminalInterface" ) );

And  I am, of course, getting a kparts.KParts.ReadWritePart

Is there a way to recast it from the python side of things, or is it a
problem on the PyKDE side?

-- 
 ("\''/").__..-''"`-. .         Roberto Alsina
 `9_ 9  )   `-. (    ).`-._.`)  [EMAIL PROTECTED]
 (_Y_.)' ._   ) `._`.  " -.-'   KDE Developer (MFCH)
  _..`-'_..-_/ /-'_.'
(l)-'' ((i).' ((!.'             Buenos Aires - Argentina
Imminentizing the eschaton since 1971.

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to