[PyKDE] AttributeError: setBackgroundColor

Stefan Seefeld seefeld at sympatico.ca
Sat Dec 13 22:08:00 GMT 2003


hi there,

I'v been playing with pyqt a bit, and I run into
a problem with some of the examples. the QWidget's
'setBackgroundColor' method doesn't seem to be
accessible:

bash-2.05b$ examples2/splitter.py
Traceback (most recent call last):
   File "examples2/splitter.py", line 39, in ?
     t1.setBackgroundColor(Qt.blue.light(180))
AttributeError: setBackgroundColor

Trying to call the 'setBackgroundColor' by hand
on any qwidget object gives the same error.

What am I doing wrong ? I'm using
PyQt 3.9, sip 3.9, Qt 3.1.

Thanks for your help !

Stefan





More information about the PyQt mailing list