[PyQt] Another connect problem

Thomas Olsen tanghus at gmail.com
Fri Oct 2 00:09:20 BST 2009


On 1/10-2009 23:51 David Boddie <david at boddie.org.uk> wrote:
> job.data.connect(self.job_received)
> 

Thanks! It works. It really is true that the new syntax is more python like. 
The documentation was so explicit that I didn't understand it :-) The only 
problem now is that the method doesn't actually get any data.

    def job_received(self, job, data):
        print "Data received: " + data

I run "urllib2.urlopen(url).read().strip()" at the same time to check that the 
url contains some data, but when job_received is called it only prints out 
"Data received: " and a newline.

Well it's late now and I've had some red wine so I'll wait until tomorrow to 
debug anymore.

Thanks for the help.

-- 
Best Regards / Med venlig hilsen

  Thomas Olsen



More information about the PyQt mailing list