[PyKDE] QColor.fromRgb and QColor.setRgb bug??
Allen Bierbaum
abierbaum at gmail.com
Fri Sep 29 15:07:58 BST 2006
>From the documentation to PyQt it seems that this line should work:
>>> QtGui.QColor.fromRgb(QtGui.QApplication.style().styleHint(QtGui.QStyle.SH_Table_GridLineColor,option))
Traceback (most recent call last):
File "<string>", line 1, in <string>
TypeError: insufficient number of arguments to QColor.fromRgb()
>>>
Unfortunately calling setRgb has the same problem. Does anyone see
anything I am doing wrong here or is there a way to work around this
problem?
-Allen
More information about the PyQt
mailing list