Love Camelot.
However found a wart when running under pyside . (Ubuntu 12.10, latest pyside etc..)
I have field attributes defined to set the background color on fields based on certain calculations (ie warning) this works great with PyQt.
However I get lots of errors when running under pyside e.g. and any cell which I set the background color , doesn't show (actually the text is there but can only be seen if you select the text, ie white text on white backgound)
File "/usr/local/lib/python2.7/dist-packages/Camelot-12.06.29-py2.7.egg/camelot/view/controls/delegates/delegatemanager.py", line 76, in paint
delegate.paint(painter, option, index)
File "/usr/local/lib/python2.7/dist-packages/Camelot-12.06.29-py2.7.egg/camelot/view/controls/delegates/floatdelegate.py", line 75, in paint
self.paint_text( painter, option, index, value_str, horizontal_align=Qt.AlignRight )
File "/usr/local/lib/python2.7/dist-packages/Camelot-12.06.29-py2.7.egg/camelot/view/controls/delegates/customdelegate.py", line 239, in paint_text
painter.fillRect(rect, background_color or option.palette.base() )
TypeError: arguments did not match any overloaded call:
QPainter.fillRect(QRectF, QBrush): argument 1 has unexpected type 'QRect'
QPainter.fillRect(QRect, QBrush): argument 2 has unexpected type 'PySide.QtGui.QColor'
QPainter.fillRect(int, int, int, int, QBrush): argument 1 has unexpected type 'QRect'
QPainter.fillRect(QRectF, QColor): argument 1 has unexpected type 'QRect'
QPainter.fillRect(QRect, QColor): argument 2 has unexpected type 'PySide.QtGui.QColor'
QPainter.fillRect(int, int, int, int, QColor): argument 1 has unexpected type 'QRect'
QPainter.fillRect(int, int, int, int, Qt.GlobalColor): argument 1 has unexpected type 'QRect'
QPainter.fillRect(QRect, Qt.GlobalColor): argument 2 has unexpected type 'PySide.QtGui.QColor'
QPainter.fillRect(QRectF, Qt.GlobalColor): argument 1 has unexpected type 'QRect'
QPainter.fillRect(int, int, int, int, Qt.BrushStyle): argument 1 has unexpected type 'QRect'
QPainter.fillRect(QRect, Qt.BrushStyle): argument 2 has unexpected type 'PySide.QtGui.QColor'
QPainter.fillRect(QRectF, Qt.BrushStyle): argument 1 has unexpected type 'QRect'
I also tried with RGB values.
If I remove the field_attributes altogether then things render correctly. Am I doing something wrong here ;-)