I am writing a python plasmoid for KDE4.
I have a QHttp object which emits the signal “done (bool)” and i assign it to my functionB. I want to pass to functionB the valueA too. If I pass the value using lambda, the signal never triggers functionB.
def functionA(self):
self.http=QHttp()
...
valueA="valueA"
self.connect(self.http, SIGNAL("done (bool)"), lambda valueA: self.functionB)
self.get("/myurl.html")
def functionB(self, done, valueA):
...
Any ideas?
Your lambda does not call functionB. Try if this works:
EDIT. Perhaps this approach would be better: