[PyKDE] enum problem again

Trung Hieu Nguyen ntrhieu2000 at yahoo.com
Sun Feb 27 23:32:26 GMT 2005


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? Where can I find
the snapshot of Sip that relaxed strict enum?

thank you,

Hieu


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Sports - Sign up for Fantasy Baseball. 
http://baseball.fantasysports.yahoo.com/




More information about the PyQt mailing list