Re: [PyQt] Re: PyQt4 and threading

2009-10-24 Thread Giovanni Bajo
On gio, 2009-10-15 at 10:00 +0200, Andreas Pakulat wrote: > On 15.10.09 09:22:03, Ole Streicher wrote: > > >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) > > Jason H writes: > > > GUI operations can only be done in the main thread. > > > > Is setting the brusch of a QGraphicsRectItem a

Re: [PyQt] Re: PyQt4 and threading

2009-10-15 Thread Andreas Pakulat
On 15.10.09 13:17:38, Ole Streicher wrote: > Andreas Pakulat writes: > > On 15.10.09 09:22:03, Ole Streicher wrote: > >> >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) > >> Jason H writes: > >> > GUI operations can only be done in the main thread. > >> Is setting the brusch of a QGraphi

[PyQt] Re: PyQt4 and threading

2009-10-15 Thread Ole Streicher
Hi Andreas, Andreas Pakulat writes: > On 15.10.09 09:22:03, Ole Streicher wrote: >> >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) >> Jason H writes: >> > GUI operations can only be done in the main thread. >> Is setting the brusch of a QGraphicsRectItem a GUI operation? > Possibly, th

Re: [PyQt] Re: PyQt4 and threading

2009-10-15 Thread Andreas Pakulat
On 15.10.09 09:22:03, Ole Streicher wrote: > >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) > Jason H writes: > > GUI operations can only be done in the main thread. > > Is setting the brusch of a QGraphicsRectItem a GUI operation? Possibly, the scene.update() is definetly going to tri

[PyQt] Re: PyQt4 and threading

2009-10-15 Thread Ole Streicher
Hi Jason, >> item.setBrush(QtGui.Brush(QtGui.QColor(...))) Jason H writes: > GUI operations can only be done in the main thread. Is setting the brusch of a QGraphicsRectItem a GUI operation? And, if yes: What is the preferred way to provide huge GUI updates without getting the user int