Problem: Can no longer copy QColor objects

Occured with PYQT 3.17.2 and SIP 4.6

Can anybody kindly confirm whether this problem has vanished (or not?) 
with the latest SIP version (4.7)?

Thanks,

Matti

Input:

import qt
import sip
from copy import copy
print "PYQT version", qt.PYQT_VERSION_STR
print "SIP version", sip.SIP_VERSION_STR, sip.SIP_VERSION
c = qt.QColor()
print "__reduce__ ", c.__reduce__
print "__reduce_ex__", c. __reduce_ex__
copy(c)

Output:

2.4.3 (#1, Mar 29 2007, 10:11:04)
[GCC 4.1.0 (SUSE Linux)]

PYQT version 3.17.2
SIP version 4.6 263680
__reduce__  None
__reduce_ex__ None
Traceback (most recent call last):
   File "qtbug1.py", line 11, in ?
     copy(c)
   File "/usr/local/encap/python-2.4//lib/python2.4/copy.py", line 106, 
in copy
     raise Error("un(shallow)copyable object of type %s" % cls)
copy.Error: un(shallow)copyable object of type <class 'qt.QColor'>



If you are not the intended addressee, please inform us immediately that you 
have received this e-mail by mistake and delete it. We thank you for your 
support.

_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to