[Kde-bindings] Using a KPart in a PyKDE4 Application
Dan Snek
sdeinx at gmail.com
Tue Jun 2 19:34:46 UTC 2009
> There is:
> http://techbase.kde.org/Development/Tutorials/Using_KParts
>
> (it creates a KatePart, to embedd an Okular part, just replace "KatePart" by whatever is the name of the okular part).
>
Alright, I was able to include the Okular-part.
Found the tutorial for the katepart here:
http://websvn.kde.org/trunk/KDE/kdebindings/python/pykde4/examples/kpartsExamples/
And here's what i changed:
part = KLibLoader.self().factory("okularpart").create(self)
self.setCentralWidget(part.widget())
Thanks!
More information about the Kde-bindings
mailing list