-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Giovanni Bajo schrieb: | Hello, | | I see this behaviour with PyQt: | | |>>>from qt import * |>>>a = QApplication([]) |>>>class Foo(QObject): | | ... pass | ... | |>>>f = Foo() |>>>print f.className() | | Foo | |>>>print f.isA("Foo") | | False | |>>>print f.inherits("Foo") | | False | | | I found out this while trying to use QObject.queryList, which does not work | as expected for Python objects. One has to do: | | [x for x in self.queryList() if isinstance(x, Foo)] | | instead of: | | self.queryList("Foo") | | which is a tad more readable and easy.
This came up some days ago, I think Phil fixed it in the snapshots. And he said that he'll release sip 4.2/PyQt 3.14 in a couple of days, so you'll need some patience - or build the snapshot yourself.
greetings
Torsten
- -- Torsten Marek <[EMAIL PROTECTED]> ID: A244C858 -- FP: 1902 0002 5DFC 856B F146 894C 7CC5 451E A244 C858 Keyserver: subkeys.pgp.net
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCEPjBfMVFHqJEyFgRApziAJ9OBeUGh3+I1NMN2oKkRghqjhgrywCfd1cL pZVaUZeu37YmtMS6FrM2ypg= =8niz -----END PGP SIGNATURE-----
_______________________________________________ PyKDE mailing list PyKDE@mats.imk.fraunhofer.de http://mats.imk.fraunhofer.de/mailman/listinfo/pykde