[PyKDE] Wrapping Poppler Qt4 with SIP

Phil Thompson phil at riverbankcomputing.co.uk
Sat Feb 24 18:09:43 GMT 2007


On Saturday 24 February 2007 5:39 pm, Rajeev J Sebastian wrote:
> Hello Phil,
>
> Currently, the bindings work fine.
>
> I have to do something like
>
> doc = QtPoppler.Poppler.Document.load(<path>)
>
> Does the .Poppler comes as a result of the namespace ?

Yes.

> Is there some 
> way to get rid of that ? I would like an interface like
> QtPoppler.Document.load(<path>)

The only way I can think of is to call your module something else (eg. 
_QtPoppler) and have a QtPoppler.py file that does something like...

from _QtPoppler.Poppler import *

Phil




More information about the PyQt mailing list