[PyQt] Connect a signal to a signal
"Sybren A. Stüvel"
sybren at stuvel.eu
Wed Jun 9 11:46:01 BST 2010
On 9-6-2010 12:43, Jugdish wrote:
> Hi, what is the proper way to connect a signal to another signal using
> the new-style signal/slot syntax? I've been doing it like this:
>
> myObj1.mySignal.connect(lambda arg1, arg2: myObj2.mySignal.emit(arg1,arg2))
>
> but is there a way to do it without using a lambda function?
Yep:
myObj1.mySignal.connect(myObj2.mySignal)
Sybren
More information about the PyQt
mailing list