[PyQt] How to process QDBusPendingCallWatcher results?

Phil Thompson phil at riverbankcomputing.com
Mon Aug 13 15:00:13 BST 2012


On Mon, 13 Aug 2012 09:41:44 -0400, Evade Flow <evadeflow at gmail.com>
wrote:
>> Try this...
>>
>>     def callFinishedSlot(self, call):
>>         reply = QtDBus.QPyDBusPendingReply(call)
> 
> Thanks, Phil. It doesn't work for me yet, I'm getting:
> 
>>>> call
> <PyQt4.QtDBus.QDBusPendingCallWatcher object at 0x9e9538c>
>>>> reply = QtDBus.QPyDBusPendingReply(call)
> Traceback (most recent call last):
>   File "<string>", line 1, in <fragment>
> builtins.AttributeError: 'module' object has no attribute
> 'QPyDBusPendingReply'
> 
> I'm now looking through the build setup to see whether there's some
> config setting I missed that is keeping the qpy stuff from getting
> built. Any suggestions? (I built from the PyQt4.9.4 release tarball; do
> I need to use a development snapshot instead?)

Sorry, my mistake - QDBusPendingReply, not QPyDBusPendingReply. (The
latter is the internal C++ class but it's exposed as the former.)

Phil


More information about the PyQt mailing list