[PyKDE] AttributeError: setBackgroundColor

Phil Thompson phil at riverbankcomputing.co.uk
Sun Dec 14 02:30:01 GMT 2003


On Saturday 13 December 2003 7:50 pm, Stefan Seefeld wrote:
> 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.

Read examples2/README paying particular attention to the Qt version.

Phil




More information about the PyQt mailing list