[PyQt] Re: Note about setting setting painters with gradients instead of brushes

2007-09-03 Thread Jeff Donner
> This should work with PyQt v4.2 and later. If that's what you are using then send me a simple script that demonstrates the problem. Here - I believe I'm using the latest. I'm not using Ubuntu's old one at least. I can't tell how, to see. Anyway, this shows it on my system. #!/usr/bin/env python

Re: [PyQt] Re: Note about setting setting painters with gradients instead of brushes

2007-09-03 Thread Phil Thompson
On Monday 03 September 2007, Jeff Donner wrote: > > This should work with PyQt v4.2 and later. If that's what you are using > > then > > send me a simple script that demonstrates the problem. > > Here - I believe I'm using the latest. I'm not using Ubuntu's old one > at least. I can't tell how, to

Re: [PyQt] Re: Note about setting setting painters with gradients instead of brushes

2007-09-04 Thread Sundance
Phil Thompson wrote: > Works fine for me. Doesn't work for me though: [EMAIL PROTECTED]:~$ python test.py no workaround Traceback (most recent call last): File "test.py", line 49, in paintEvent painter.setBrush(g) TypeError: argument 1 of QPainter.setBrush() has an invalid type QPaintEngin

Re: [PyQt] Re: Note about setting setting painters with gradients instead of brushes

2007-09-04 Thread Phil Thompson
On Tuesday 04 September 2007, Sundance wrote: > Phil Thompson wrote: > > Works fine for me. > > Doesn't work for me though: > > [EMAIL PROTECTED]:~$ python test.py > no workaround > Traceback (most recent call last): > File "test.py", line 49, in paintEvent > painter.setBrush(g) > TypeError:

Re: [PyQt] Re: Note about setting setting painters with gradients instead of brushes

2007-09-04 Thread Sundance
Phil Thompson wrote: > I've already said that you need PyQt 4.2 or later. Blargh, you're right -- sorry! -- S. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt