[PyQt] QThread Behaviour
David Klasinc
bigwhale at lubica.net
Tue Jun 17 15:23:01 BST 2008
Greetings,
After QThread.run() was called, shouldn't calling thread continue with
its execution and not wait for the thread to finish? Shortened example
follows
class myThread (QtCore.QThread):
def run (self):
print "T 1"
sleep 1
print "T 2"
sleep 1
print "T 3"
thread = myThread()
print "Foo"
thread.run()
sleep 1
print "Bar"
And The result is
Foo
T 1
T 2
T 3
Bar
Shouldn't it be:
Foo
T 1
Bar
T 2
T 3
Anyone can shed some light on this?
rgrds,
David
More information about the PyQt
mailing list