[PyKDE] [PATCH] Fix compilation of PyKDE snapshot20050628

Sebastian Kügler sebas at kde.nl
Wed Jun 29 21:50:46 BST 2005


On Wednesday 29 June 2005 22:13, Jim Bublitz wrote:
> On Wednesday 29 June 2005 12:18, Sebastian Kügler wrote:
> There are some compiler/distribution related bugs I haven't fixed yet
> - QList is one and gcc4 stuff is another. I'll get to these as soon
> as possible.

Thanks, to clarify: it already works fine here, compiled with gcc4 (not 
sure if there are more gcc4 issues, though).

> > > This includes a fix to allow DCOP under PyKDE to handle bool
> > > types as return values.
> >
> > The problem with bools as return types is not solved, however.
> > Adding a couple of prints reveals that in dcopext.py:def marshall()
> > "args" and "argtypes" are empty, so it doesn't do much.
> >
> > Any hints where I should look for debugging this?
>
> If you're still debugging the sample program you posted, you're not
> passing any args with the call, so marshall() shouldn't see any. You
> can look at what unmarshall returns - that's where the return data is
> handled; the example program you posted (and some other tests) work
> correctly here. Again, be sure you're looking at the second element
> of the tuple, not the first as the example program was originally
> written. The dcop call will return a tuple of the form (valid,
> result). 'valid' will always be True if the call succeeded (and the
> call was always succeeding - it just sent back result == None for any
> bool) - you want to look at 'result'.

Ah, yeah. That's it - of course. It now works fine though.

Thanks,
-- 
sebas

  http://www.kde.nl     |   GPG Key ID: 9119 0EF9 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
A printer consists of three main parts: the case, the jammed paper tray 
and the blinking red light. - Dave Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20050629/38a0bab0/attachment.bin


More information about the PyQt mailing list