[PyQt] QThread problem
Darryl Wallace
darryl.wallace at prosensus.ca
Mon Dec 8 16:19:42 GMT 2008
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
More information about the PyQt
mailing list