Re: [PyQt] Pixel pushing performance

2008-05-08 Thread Aaron Digulla
Quoting Håkon Bertheussen <[EMAIL PROTECTED]>: Hi, I'm just getting started with PyQt, trying to implement a fairly complex widget in python. Unfortunately, it cannot easily be painted using higher level drawing primitives, meaning that I have to set individual pixels. I realize that this obvio

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Matt Newell
On Wednesday 07 May 2008 18:59:33 Roberto Alsina wrote: > > > > def paintEvent(self, event): > > canvas = QtGui.QImage(event.rect().size(), > >QtGui.QImage.Format_RGB32) > > for i in xrange(0, canvas.height()): > > for j in xrange(

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Roberto Alsina
On Wednesday 07 May 2008 20:16:25 Håkon Bertheussen wrote: > Hi, > > I'm just getting started with PyQt, trying to implement a fairly complex > widget in python. Unfortunately, it cannot easily be painted using > higher level drawing primitives, meaning that I have to set individual > pixels. I rea

Re: [PyQt] Pixel pushing performance

2008-05-07 Thread Giovanni Bajo
On Thu, 2008-05-08 at 01:16 +0200, Håkon Bertheussen wrote: > Hi, > > I'm just getting started with PyQt, trying to implement a fairly complex > widget in python. Unfortunately, it cannot easily be painted using > higher level drawing primitives, meaning that I have to set individual > pixels. I r

[PyQt] Pixel pushing performance

2008-05-07 Thread Håkon Bertheussen
Hi, I'm just getting started with PyQt, trying to implement a fairly complex widget in python. Unfortunately, it cannot easily be painted using higher level drawing primitives, meaning that I have to set individual pixels. I realize that this obviously has a lot of overhead compared to a C++ impl