[PyKDE] Error when overloading QTable.paintCell
    marvelan L 
    marvelan at hotmail.com
       
    Fri Jun 13 17:51:01 BST 2003
    
    
  
Hi all,
Could somebody explain why my effort to overload the paintCell method of the 
QTable fails?
I get the following error message:
       TypeError: paintCell() takes exactly 6 arguments (7 given)
when I run the code below:
from qt import *
from qttable import *
import sys
class RC(QTable):
    def __init__(self, parent=None, name=None):
        QTable.__init__(self, 2,2, parent, name)
    def paintCell(self, painter, row, col, rect, selected):
        QTable.paintCell(self,painter, row, col, rect, selected)
if __name__ == "__main__":
    app = QApplication(sys.argv)
    main = QMainWindow()
    main.setGeometry(0,0,400,400)
    app.setMainWidget(main)
    prop = RC(main)
    main.show()
    app.exec_loop()
I use:
PyQt-x11-gpl-3.4
qt-x11-free-3.1.0
Both debug compiled...
_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail
    
    
More information about the PyQt
mailing list