Hello,

Sergio Jovani wrote
class Download(QThread):
        def __init__(self, url, path, filename, parent = None):
                QThread.__init__(self, parent)
                self.path=path
                self.url=url
                self.filename=filename

        def run(self):
                os.chdir(self.path)
                
urllib.urlretrieve(self.url,self.filename,reporthook=self.myreporthook)

I don't know if this would be the problem, because it looks like you have trimmed the code to only contain relevant parts. I have a couple questions. If you don't terminate, does it properly retrieve the item at the url? Your code here for the Download class has no definition of "self.myreporthook" so could that be the problem?

darryl
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to