You've told me this before, but I didn't quite follow what was buggy. pal = QtGui.QPalette(MyLineEdit.palette()) pal.setColor(QtGui.QPalette.Base,QtGui.QColor('red')) MyLineEdit.setPalette(pal)
It seems that .palette() is returning a const and I shouldn't modify it. What about .parent()? should I not use .parent() to make connections? thanks mbs On Thu, 2009-02-05 at 13:11 +0000, Phil Thompson wrote: > On Thu, 05 Feb 2009 07:50:57 -0500, Matt Smith <mel...@orangepalantir.org> > wrote: > > You could use the palette. > > > > > > MyLineEdit.palette().setColor(QtGui.QPalette.Base,QtGui.QColor('red')) > > That's buggy as palette() returns a const. You need to make a copy of the > returned palette and modify that. See the roadmap. > > Phil _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt