[PyQt] how to import pykde ?
feth at arezki.net
Thu Sep 4 15:29:55 BST 2008
I got a (beginner?) problem initializing some objects, for instance of the
from kdecore import KAboutData
(how to be sure of the kdecore version used? I suspect it's from kde 3,
help(KAboutData) is not explicit)
*does not work, although is favoured by documentation :
from PyKDE4.kdecore import KAboutData'.
(help(KAboutData) refers to kde4 classes)
However, it seems I cannot use both kinds of imports in the same program (both
wrap the QObject class...).
So, should I use only the first kind of import ? Will it work ?
I join a small test generating errors on a debian and an ubuntu:
% python test.py pykde4
debian sid/experimental on sept 4th 2008 :
TypeError: argument 1 of KAboutData() has an invalid type
TypeError: argument 3 of KAboutData() has an invalid type
Thank you for clues !
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1160 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080904/eefdd363/test.py
More information about the PyQt