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 scorp...@yahoo.com writes: GUI operations can only be done in the main thread. Is setting the brusch of a

[PyQt] Re: PyQt4 and threading

2009-10-15 Thread Ole Streicher
Hi Jason, item.setBrush(QtGui.Brush(QtGui.QColor(...))) Jason H scorp...@yahoo.com 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

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 scorp...@yahoo.com 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

[PyQt] Re: PyQt4 and threading

2009-10-15 Thread Ole Streicher
Hi Andreas, Andreas Pakulat ap...@gmx.de writes: On 15.10.09 09:22:03, Ole Streicher wrote: item.setBrush(QtGui.Brush(QtGui.QColor(...))) Jason H scorp...@yahoo.com writes: GUI operations can only be done in the main thread. Is setting the brusch of a QGraphicsRectItem a GUI

Re: [PyQt] Re: PyQt4 and threading

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