[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] enum problem again
From: "Phil Thompson" <phil () riverbankcomputing ! co ! uk>
Date: 2005-02-28 10:22:07
Message-ID: 29889.82.68.80.137.1109586127.squirrel () river-bank ! demon ! co ! uk
[Download RAW message or body]
> Hi all,
> I am maintaining a project using PyQt and having a
> problem with C++ enum. When I pass int values as
> arguments to where enum is expected, there is a
> TypeError.
> For example, the following Python code will cause an
> error:
>
> from qt import *
> a = QSizePolicy(1,1,0,0,False)
>
> -> TypeError: argument 1 of QSizePolicy() has an
> invalid type
>
> I read on this list and found out that the strict enum
> checking has been relaxed and then enforced again.
> There are too many errors of this type in the code
> that I'm maintaining. Is there a way for me to fix
> this error without modifying my code?
You could hack your own copy of SIP.
> Where can I find
> the snapshot of Sip that relaxed strict enum?
Not from me. Why not just go back to SIP v4.1.1?
Phil
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic