[Kde-bindings] Using a KPart in a PyKDE4 Application

Cyrille Berger cberger at cberger.net
Tue Jun 2 07:10:51 UTC 2009


On Tuesday 02 June 2009, Simon Edwards wrote:
> Hi,
>
> Dan Snek wrote:
> > I want to include a KPart (Okular) in a PyKDE4 application, but I
> > couldn't figure out yet, how to do that.
> >
> > While searching around, I found out, that there were
> > createReadWritePart() and createReadOnlyPart() in the kparts global
> > package, but these functions don't exist anymore and the corresponding
> > API-Page doesn't exist (
> > http://api.kde.org/pykde-4.2-api/kparts/global.html ).
> >
> > Are there any simple examples on how to do that?
>
> Do you have an example in C++ or recent documentation about how to do
> this in C++?
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).

-- 
Cyrille Berger
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20090602/cb420d3c/attachment.html>


More information about the Kde-bindings mailing list