Hi,

According to Qt3 docs I can do something like this :

[...]
QPointArray a( 1 );
a[0] = QPoint( 4, 5 );

but doing the same with PyQt3 :

>>> a = QPointArray(1)
>>> a[0] = QPoint(4,5)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
TypeError: object does not support item assignment

Another related problem is with point() :

>>> a = QPointArray(1)
>>> a.setPoint(0,QPoint(1,1))
>>> type(a.point(0))
<type 'tuple'>

But the Qt3 documentation says point(index) should return a QPoint. This is 
important because currently you can't do something like :

a = QPointArray(1)
b = QPointArray(1)

a.setPoint(0,QPoint(1,1))
b.setPoint(0,a.point(0))

Solution would be either making point(index) return a QPoint or making 
setPoint accept a tuple for second argument.

Regards,
ismail

-- 
<Terwou> \\o \o> <o/ o//

Attachment: pgpXk8mxPtEaF.pgp
Description: PGP signature

_______________________________________________
PyKDE mailing list    [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to