[PyKDE] QTable.paintCell() overrides won't work as expected

Phil Thompson phil at riverbankcomputing.co.uk
Sun Feb 6 19:57:54 GMT 2005


On Sunday 06 February 2005 7:45 pm, Hans-Peter Jansen wrote:
> Hi Phil,
>
> next one (and last for today) is a small but disturbing problem, when
> subclassing QTable with a paintCell override. See attached script.
>
> Funny is, when enabling the XXXpaintCell (7 arg) method, it says:
> TypeError: paintCell() takes exactly 7 arguments (6 given)
> while using the YYYpaintCell() (6 arg) method, is says:
> TypeError: paintCell() takes exactly 6 arguments (7 given)
>
> The current default override in this script, while somewhat "wrong",
> does what XXXpaintCell() should.
>
> Mind looking into this issue?

Might be worth checking the archives for this one - it rings a bell.

Phil




More information about the PyQt mailing list