[PyQt] QThread join???

Pradnyesh Sawant spradml at gmail.com
Fri May 4 11:07:38 BST 2007


Hello
I have something like the foll scenario:

class A(QThread):
    def __init__(self):
        QThread.__init__(self)
    def run(self):
        # do something
        pass
class B:
     def __init__(self):
         a = A()
         a.start()
         # a.join()               # how do i do this???

Basically i want class B to "wait" till thread in class A has run
completely. But it seems QThread does not have a ".join" method. How
do i achieve the above?

Any suggestions would be encouraging!
-- 
warm regards,
Pradnyesh Sawant
--
Be yourself, everyone else is taken. --Anon


More information about the PyQt mailing list