On Saturday 01 February 2003 12:08 am, Sebastien Auclair wrote:
> With PYQT Win_Commercial 3.4
>
> The return of the call changes the type of the receiving variable.
>
> Here's a demonstration:
> >>> color = qRgba(1,1,1,1)
> >>> qRed(color)
>
> 1
>
> >>> color = QColorDialog.getRgba (c)
> >>> color
>
> (16843009, 1)
>
> >>> qRed(color)
>
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
> TypeError: Argument 1 of qRed() has an invalid type

It's in the documentation. QColorDialog.getRgba() returns a tuple of the 
colour and the "ok" flag.

Phil

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.gmd.de/mailman/listinfo/pykde

Reply via email to