Re: [PyQt] QObject: Cannot create children for a parent that is in a different thread. How to edit another threads objects?

2009-09-14 Thread Jason H
be an emit. - Original Message From: Soumen banerjee To: pyqt@riverbankcomputing.com Sent: Monday, September 14, 2009 8:27:42 PM Subject: Re: [PyQt] QObject: Cannot create children for a parent that is in a different thread. How to edit another threads objects? I cant understand wha

Re: [PyQt] QObject: Cannot create children for a parent that is in a different thread. How to edit another threads objects?

2009-09-14 Thread Soumen banerjee
I cant understand what im doing wrong. Heres the code gui.py: from PyQt4 import QtCore, QtGui import sys from subprocess import Popen class Ui_MainWindow(object): fileinit=False paused=True quit=False filename="" def setupUi(self, MainWindow):

Re: [PyQt] QObject: Cannot create children for a parent that is in a different thread. How to edit another threads objects?

2009-09-14 Thread Andreas Pakulat
On 14.09.09 22:50:04, Soumen banerjee wrote: > Hello, > I have a program with the following structure > 1st thread which reads lines from a file > 2nd a gui thread which contains(among other things) a textEdit > As the line is read from the file I want to display it in the text > box. When I use th

[PyQt] QObject: Cannot create children for a parent that is in a different thread. How to edit another threads objects?

2009-09-14 Thread Soumen banerjee
Hello, I have a program with the following structure 1st thread which reads lines from a file 2nd a gui thread which contains(among other things) a textEdit As the line is read from the file I want to display it in the text box. When I use the settext method of the textedit object from the 1st thre