[PyKDE] QColor.name() not implemented in PyQt?

Phil Thompson phil at river-bank.demon.co.uk
Tue May 7 15:19:00 BST 2002


Janos Blazi wrote:
> 
> I think QColor.name() is not implemented in PyQt 3.1 (and if I remember
> correctly QRegion.rects() is not implemented either).
> Is there any special reason for that or has it been simply forgotten?

QColor.name() is implemented...

Python 2.2.1 (#1, Apr 14 2002, 20:02:21)
[GCC 2.95.2 19991024 (release)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> from qt import *
>>> a = QApplication(sys.argv)
>>> str(Qt.red.name())
'#ff0000'
>>>

QRegion.rects() isn't implemented because it needs handwritten code and
I was being lazy.

Phil




More information about the PyQt mailing list