[PyQt] enums and hand written code

2010-08-06 Thread Clinton Stimpson
Hi,

I've got some hand written code using the SIP API to integrate PyQt with other 
C++ classes wrapped with another tool.

I've got things generally working, but I'm not quite sure how to handle enums, 
such as Qt::AutoConnection.

When I call api-api_convert_to_type(...) it asserts.  I can do a 
sipTypeIsEnum(...) to check beforehand, but I don't see in the docs how to get 
the value out.

Also, the docs should be updated to show how to get the sip api if its a 
PyCapsule.

Thanks,
Clint
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] multiple inheritance and MappedType

2010-07-01 Thread Clinton Stimpson
Hi,

I've got an existing library with python wrappers generated with a different 
tool, and I've successfully used MappedType to interface with that and I'm 
getting the interoperability I'm looking for.

But now I want to use sip to wrap a class that derives from two classes, one 
is QObject, and the other is a MappedType.

I'm getting an error from sip:
A class, exception, namespace or mapped type has already been defined with the 
same name

Is inheritance from a MappedType not supported?

Thanks,
Clint
___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


Re: [PyQt] older sip version

2009-09-29 Thread Clinton Stimpson
On Tuesday 29 September 2009 05:43:21 am David Boddie wrote:
 On Mon Sep 28 23:10:21 BST 2009, Clinton Stimpson wrote:
  Where can I download sip 4.7.8?  I need to build PyQt 4.4.
  Any newer version of sip doesn't work with that.

 Which platform are you using?


Windows.  But I manged to get the source using a linux box and extracting it 
out of a Fedora source rpm.  I'm now able to build and use this PyQt.
I think it would be nice if previous sip releases are kept on the sip website.

Thanks,
Clint

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt


[PyQt] older sip version

2009-09-28 Thread Clinton Stimpson
Hi,

Where can I download sip 4.7.8?  I need to build PyQt 4.4.
Any newer version of sip doesn't work with that.

Thanks,
Clint

___
PyQt mailing listPyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt